mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Adding error 503 catcher
This commit is contained in:
parent
cdf75ced9a
commit
f6744d3e39
3 changed files with 16 additions and 2 deletions
|
@ -8,12 +8,12 @@ from starlette.middleware.sessions import SessionMiddleware
|
|||
import aurweb.config
|
||||
|
||||
from aurweb.db import get_engine
|
||||
from aurweb.routers import html, sso
|
||||
from aurweb.routers import html, sso, errors
|
||||
|
||||
routes = set()
|
||||
|
||||
# Setup the FastAPI app.
|
||||
app = FastAPI()
|
||||
app = FastAPI(exception_handlers=errors.exceptions)
|
||||
|
||||
|
||||
@app.on_event("startup")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue