From 51634184affc9dd3a87e8d4636806fbb2e4b3ba4 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Mon, 6 Nov 2023 23:29:12 +0100 Subject: [PATCH] add router events --- app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 8e8d558..276681c 100644 --- a/app/main.py +++ b/app/main.py @@ -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")