Fix method name
This commit is contained in:
parent
31058d1c29
commit
478804e414
1 changed files with 1 additions and 1 deletions
2
app.py
2
app.py
|
@ -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
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue