Update project 5 FRONT main page
This commit is contained in:
@@ -10,6 +10,16 @@ from api.routers.webhooks import router as webhooks_router
|
||||
|
||||
app = FastAPI(title="Ticketing System API")
|
||||
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"], # Для локальной песочницы оставляем открытым
|
||||
allow_credentials=True,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
||||
app.include_router(auth_router)
|
||||
app.include_router(webhooks_router)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user