mirror of
https://github.com/Radiquum/AniX.git
synced 2025-05-02 10:59:40 +05:00
fix(frontend): fix API_URL environment variable being undefined
This commit is contained in:
parent
3c850ccda8
commit
c73e84078a
3 changed files with 13 additions and 1 deletions
|
@ -2,6 +2,7 @@ import os
|
|||
|
||||
import uvicorn
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
from modules import proxy
|
||||
from modules.pages import bookmarks
|
||||
from modules.pages import favorites
|
||||
|
@ -52,6 +53,14 @@ app = FastAPI(
|
|||
redoc_url=None,
|
||||
)
|
||||
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"],
|
||||
allow_credentials=True,
|
||||
allow_methods=["GET", "POST"],
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
||||
app.include_router(profile.router, prefix=f"{PREFIX}/profile", tags=["Profile"])
|
||||
app.include_router(auth.router, prefix=f"{PREFIX}/auth", tags=["Profile"])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue