feat 支持Emby/Jellyfin登录认证
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
import asyncio
|
||||
import json
|
||||
|
||||
from fastapi import APIRouter
|
||||
from fastapi import APIRouter, Depends
|
||||
from fastapi.responses import StreamingResponse
|
||||
|
||||
from app import schemas
|
||||
from app.core.security import verify_token
|
||||
from app.helper.progress import ProgressHelper
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.get("/progress/{process_type}", summary="实时进度")
|
||||
async def get_progress(process_type: str):
|
||||
async def get_progress(process_type: str, _: schemas.TokenPayload = Depends(verify_token)):
|
||||
"""
|
||||
实时获取处理进度,返回格式为SSE
|
||||
"""
|
||||
|
Reference in New Issue
Block a user