add router events

This commit is contained in:
Valentin CZERYBA 2023-11-06 23:29:12 +01:00
parent ff72cf3c05
commit 51634184af

View File

@ -1,7 +1,7 @@
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from .routers import users, token, mail
from .routers import users, token, mail, events
from .dependencies import user_add
import os
@ -24,6 +24,7 @@ app.add_middleware(
app.include_router(users.router)
app.include_router(token.router)
app.include_router(mail.router)
app.include_router(events.router)
@app.on_event("startup")