Add realtime scoring API

This commit is contained in:
Ken Schenke
2020-04-16 19:37:54 -05:00
parent 2b414bcc69
commit 6375862b4f
3 changed files with 94 additions and 1 deletions

View File

@@ -117,6 +117,8 @@ func (web *Web) newHandler() http.Handler {
router.HandleFunc("/api/arena/websocket", web.arenaWebsocketApiHandler).Methods("GET")
router.HandleFunc("/api/matches/{type}", web.matchesApiHandler).Methods("GET")
router.HandleFunc("/api/rankings", web.rankingsApiHandler).Methods("GET")
router.HandleFunc("/api/scores", web.getScoresHandler).Methods("GET")
router.HandleFunc("/api/scores", web.setScoresHandler).Methods("PATCH", "PUT")
router.HandleFunc("/api/sponsor_slides", web.sponsorSlidesApiHandler).Methods("GET")
router.HandleFunc("/api/teams/{teamId}/avatar", web.teamAvatarsApiHandler).Methods("GET")
router.HandleFunc("/display", web.placeholderDisplayHandler).Methods("GET")