Release v2

This commit is contained in:
2026-07-16 02:12:29 -03:00
parent 6f98163632
commit 76cbd799ce
47 changed files with 2409 additions and 2810 deletions
+22
View File
@@ -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")