-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
32 lines (21 loc) · 889 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from app.utils import logger
app = FastAPI(title="Event Magnus",
description="Standard Webhook Middleware Designed to transfer Digital Events in Realtime",
version="1.1.0",
#openapi_url="/openapi.json",
docs_url="/docs",
redoc_url="/redoc")
from app.routes import event_router,swagger_router,register_router,server_router #event_app,swagger_app
# Include the routes in the app
#app.mount("/event", event_app)
#app.mount("/swagger", swagger_app)
app.include_router(swagger_router)
app.include_router(event_router)
app.include_router(register_router)
app.include_router(server_router)
if __name__ == "__main__":
import uvicorn
logger.info("---------------New Request Trigger-------------")
uvicorn.run(app, host="127.0.0.1", port=8000)