From 3265637654e4737679f2b1f2eb2070adae13bab1 Mon Sep 17 00:00:00 2001 From: xmkjw63 Date: Fri, 30 Jun 2023 13:59:34 +0800 Subject: [PATCH] modified: routes/manager.py --- routes/manager.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/routes/manager.py b/routes/manager.py index fe8944c..645f0f0 100644 --- a/routes/manager.py +++ b/routes/manager.py @@ -4,10 +4,9 @@ router = APIRouter() -@router.post("/apis/add") -async def add_anime(anime_url: str, conn=Depends(get_connection)): +##async def add_anime(anime_url: str, conn=Depends(get_connection)): #添加至数据库 -@router.delete("/apis/delete/{anime_id}") -def delete(anime_id: int, conn=Depends(get_connection)): +#@router.delete("/apis/delete/{anime_id}") +#def delete(anime_id: int, conn=Depends(get_connection)): #去数据库删除链接