Update README and index
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user