Fix method name

This commit is contained in:
yuuki 2024-06-15 03:36:08 +00:00
parent 31058d1c29
commit 478804e414

2
app.py
View file

@ -177,7 +177,7 @@ async def api_ng_post(item: NGItem):
return PlainTextResponse("OK") return PlainTextResponse("OK")
@app.post("/api/ng/delete") @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({ mongo_client.litey.ngs.delete_one({
"word": item.word "word": item.word
}) })