pereztr5 / cyboard

Scoring engine for cyber defense competitions
BSD 3-Clause "New" or "Revised" License
10 stars 4 forks source link

Clean up endpoints #23

Closed tbutts closed 3 months ago

tbutts commented 7 years ago

REST API Endpoints

The style of the web API doesn't follow any forms or conventions. For instance, JSON API endpoints are mixed with HTML template serving endpoints. It deserves to be cleaned up. I personally like this guide for suggestions as to naming strategies (as well as several other points it hits home on).

This would mean updating server/routes.go, and CTRL+F'ing the front end to keep any AJAX requests in sync with these updates.