From 478804e414a5756fbc1582967104f6da827014c8 Mon Sep 17 00:00:00 2001 From: yuuki <> Date: Sat, 15 Jun 2024 03:36:08 +0000 Subject: [PATCH] Fix method name --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 897fcda..3df87da 100644 --- a/app.py +++ b/app.py @@ -177,7 +177,7 @@ async def api_ng_post(item: NGItem): return PlainTextResponse("OK") @app.post("/api/ng/delete") -async def api_ng_post(item: NGItem): +async def api_ng_delete(item: NGItem): mongo_client.litey.ngs.delete_one({ "word": item.word })