File size: 627 Bytes
b2e9bf4 |
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 |
from fastapi import FastAPI , Request, APIRouter, Depends, HTTPException
from starlette.middleware.cors import CORSMiddleware
from routers import auth , gmail , websockets_new , queryfilter_router
app = FastAPI()
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["DELETE", "GET", "POST", "PUT"],
allow_headers=["*"],
)
app.include_router(auth.router)
app.include_router(gmail.router)
app.include_router(websockets_new.router)
app.include_router(queryfilter_router.router)
@app.get("/")
async def test():
return {"Message":"Application is Working!"}
|