Update README and index

This commit is contained in:
2026-07-16 02:34:24 -03:00
parent ac337e3401
commit 167fe5f253
2 changed files with 19 additions and 1 deletions
+18
View File
@@ -16,6 +16,24 @@ app = FastAPI(
)
@app.get("/")
def index():
return {
"title": "Nyeki's API",
"message": "Welcome to Nyeki's API! Refer to each version's documentation for more information.",
"versions": {
"v1": {
"base": "https://api.nyeki.dev/v1",
"docs": "https://api.nyeki.dev/v1/docs",
},
"v2": {
"base": "https://api.nyeki.dev/v2",
"docs": "https://api.nyeki.dev/v2/docs",
}
}
}
app.add_exception_handler(404, NotFoundError.handler)