Subterfuge-Revived / Remake-Backend

Server side validation and API
Creative Commons Zero v1.0 Universal
10 stars 1 forks source link

Cancel game event #5

Closed QuinnBast closed 4 years ago

QuinnBast commented 4 years ago

We need an endpoint to cancel a game event. We would just send the session_id, room_id, and event_id to cancel the event. In the future it will need to verify that the event being cancelled is in the future but for now it doesn't have to.

griendt commented 4 years ago

This issue is already solved in the RESTful API: see the destroy method. An event can be destroyed if and only if it is modifiable (meaning it belongs to the given player and occurs in the future).