fix attempt
This commit is contained in:
parent
fa6f7fb436
commit
1fa40b1905
@ -10,10 +10,10 @@ import json
|
|||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
|
|
||||||
# # # Mount static files if needed (e.g. CSS, JS, images)
|
# # # Mount static files if needed (e.g. CSS, JS, images)
|
||||||
# app.mount("/static", StaticFiles(directory="/static"), name="static")
|
app.mount("/static", StaticFiles(directory="app/static"), name="static")
|
||||||
|
|
||||||
# # Jinja2 template directory
|
# # Jinja2 template directory
|
||||||
templates = Jinja2Templates(directory="/app/templates")
|
templates = Jinja2Templates(directory="app/templates")
|
||||||
|
|
||||||
|
|
||||||
# api
|
# api
|
||||||
@ -21,7 +21,7 @@ templates = Jinja2Templates(directory="/app/templates")
|
|||||||
async def dropoutUpdate():
|
async def dropoutUpdate():
|
||||||
try:
|
try:
|
||||||
download.dropout.series()
|
download.dropout.series()
|
||||||
return JSONResponse(status_code=200, content={"status": "success", "message": "Series information gather successfully."})
|
return JSONResponse(status_code=200, content={"status": "success", "message": "Series grab complete."})
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return JSONResponse(status_code=500, content={"status": "error", "message": str(e)})
|
return JSONResponse(status_code=500, content={"status": "error", "message": str(e)})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user