generated from Luis/nextjs-python-web-template
nix fmt
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import logging
|
||||
from contextlib import asynccontextmanager
|
||||
from typing import Any
|
||||
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
from fastapi.routing import APIRoute
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
from contextlib import asynccontextmanager
|
||||
from typing import Any
|
||||
|
||||
from ..errors import ClanError
|
||||
from .assets import asset_path
|
||||
@@ -51,12 +51,11 @@ def setup_app() -> FastAPI:
|
||||
#sql methodes
|
||||
app.include_router(sql_connect.router)
|
||||
|
||||
app.include_router(socket_manager.router)
|
||||
app.include_router(socket_manager2.router)
|
||||
|
||||
# Needs to be last in register. Because of wildcard route
|
||||
app.include_router(root.router)
|
||||
app.add_exception_handler(ClanError, clan_error_handler) # type: ignore
|
||||
app.add_exception_handler(ClanError, clan_error_handler) # type: ignore
|
||||
|
||||
app.mount("/static", StaticFiles(directory=asset_path()), name="static")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user