Fixing bug where items were allowed to be deleted when referenced by a character

This commit is contained in:
2023-08-15 19:22:07 -05:00
parent abce265ba5
commit 5b9e100028
4 changed files with 85 additions and 5 deletions

View File

@ -69,11 +69,13 @@ var _ = Service("front", func() {
Payload(String)
Result(Empty)
Error("NotFound")
Error("BadRequest")
HTTP(func() {
DELETE("/item/{name}")
Response(StatusOK)
Response("NotFound", StatusNotFound)
Response("BadRequest", StatusBadRequest)
})
})