changed back
This commit is contained in:
parent
f32502b3f5
commit
8c59dda61f
|
@ -1,5 +1,5 @@
|
|||
import sentry_sdk
|
||||
from starlette.staticfiles import StaticFiles
|
||||
import os
|
||||
from fastapi import FastAPI
|
||||
from fastapi.routing import APIRoute
|
||||
from starlette.middleware.cors import CORSMiddleware
|
||||
|
@ -22,7 +22,10 @@ app = FastAPI(
|
|||
|
||||
)
|
||||
# app.mount("/static", StaticFiles(directory="static"), name="static")
|
||||
app.mount("/static", StaticFiles(directory="app/static"))
|
||||
static_file_abspath = os.path.join(os.path.dirname(__file__), "static")
|
||||
|
||||
app.mount("/static", StaticFiles(directory=static_file_abspath), name="static")
|
||||
|
||||
# Set all CORS enabled origins
|
||||
if settings.BACKEND_CORS_ORIGINS:
|
||||
app.add_middleware(
|
||||
|
|
Loading…
Reference in New Issue