Release v2
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
from fastapi import FastAPI
|
||||
from fastapi.responses import ORJSONResponse
|
||||
|
||||
from nyekiapi.lib import settings
|
||||
from nyekiapi.api.lifespan import lifespan
|
||||
from nyekiapi.api.v2 import app as app_v2
|
||||
from nyekiapi.api.v2.errors import NotFoundError
|
||||
|
||||
|
||||
app = FastAPI(
|
||||
debug=settings.DEBUG,
|
||||
docs_url=None,
|
||||
redoc_url=None,
|
||||
lifespan=lifespan,
|
||||
default_response_class=ORJSONResponse,
|
||||
)
|
||||
|
||||
|
||||
app.add_exception_handler(404, NotFoundError.handler)
|
||||
|
||||
|
||||
app.mount("/v2", app_v2, name="v2")
|
||||
Reference in New Issue
Block a user