Fixing bug where items were allowed to be deleted when referenced by a character
This commit is contained in:
@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user