feat: integrate watchlist as tab on /web page
This commit is contained in:
@@ -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})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user