feat: integrate watchlist as tab on /web page

This commit is contained in:
root
2026-02-26 16:06:21 +00:00
parent 36ec4a0eee
commit e22bc4191c
8 changed files with 494 additions and 358 deletions
+24 -2
View File
@@ -1,5 +1,5 @@
from fastapi import FastAPI, UploadFile, File, BackgroundTasks, HTTPException, Query, Request, Depends, status
from fastapi.responses import StreamingResponse, FileResponse, JSONResponse, Response
from fastapi.responses import StreamingResponse, FileResponse, JSONResponse, Response, RedirectResponse
from fastapi.responses import HTMLResponse
from fastapi.middleware.cors import CORSMiddleware
from fastapi.staticfiles import StaticFiles
@@ -359,7 +359,29 @@ async def login_page(request: Request):
@app.get("/watchlist")
async def watchlist_page(request: Request):
async def watchlist_redirect():
"""Redirect /watchlist to web interface with watchlist hash"""
return RedirectResponse("/web#watchlist")
#JJ|# API Endpoints
#WY|@app.post("/api/download")
#JJ|# API Endpoints
#WY|@app.post("/api/download")
async def create_download(request: DownloadRequest, background_tasks: BackgroundTasks):
#JJ|# API Endpoints
#WY|@app.post("/api/download")
#JJ|# API Endpoints
#WY|@app.post("/api/download")
#JJ|# API Endpoints
#WY|@app.post("/api/download")
#JJ|# API Endpoints
#JJ|# API Endpoints
"""Watchlist management page"""
return templates.TemplateResponse("watchlist.html", {"request": request})