From d0c35fe624ea06b3434ff5fcbdd11b2828d27746 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sat, 23 Oct 2021 21:55:56 +0200 Subject: [PATCH] added endpoint with optional limit --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 6e66659..cfd5331 100644 --- a/main.go +++ b/main.go @@ -844,6 +844,7 @@ func main() { router.HandleFunc("/player/{id}", getPlayer).Methods(http.MethodGet, http.MethodOptions) router.HandleFunc(`/player/{id}/next/{time:\d+}`, getPlayer).Methods(http.MethodGet, http.MethodOptions) router.HandleFunc(`/player/{id}/meta/{limit:\d*}`, getPlayerMeta).Methods(http.MethodGet, http.MethodOptions) + router.HandleFunc("/player/{id}/meta", getPlayerMeta).Methods(http.MethodGet, http.MethodOptions) router.HandleFunc("/player/{id}/track", postPlayerTrack).Methods(http.MethodPost, http.MethodOptions) router.HandleFunc("/player/{id}/track", deletePlayerTrack).Methods(http.MethodOptions, http.MethodDelete) router.HandleFunc("/match/parse/{sharecode}", getMatchParse).Methods(http.MethodGet, http.MethodOptions)