I'm developing a game website where accounts have characters. I'm using the routes:
account/{action} //execute `action` on the current account
character/{name}/{action} //execute `action` on specific character
But I need to delete
and undelete
(they are soft-deleted) characters, and while using a form is the right way for delete
, it becomes unnecessary (is it?) bloat when I can use just a GET link to character/{name}/delete
. Also, there is no verb for undeleting/restoring.
What is the correct and easy way (or both if there isn't the perfect way) to workaround this?