aboutsummaryrefslogtreecommitdiff
path: root/pkg/api/api0/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/api/api0/api.go')
-rw-r--r--pkg/api/api0/api.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/pkg/api/api0/api.go b/pkg/api/api0/api.go
index 398ac17..10729e1 100644
--- a/pkg/api/api0/api.go
+++ b/pkg/api/api0/api.go
@@ -104,12 +104,9 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
h.handleAccountsGetUsername(w, r)
case "/accounts/lookup_uid":
h.handleAccountsLookupUID(w, r)
+ case "/player/pdata", "/player/info", "/player/stats", "/player/loadout":
+ h.handlePlayer(w, r)
default:
- if strings.HasPrefix(r.URL.Path, "/player/") {
- // TODO: rate limit
- h.handlePlayer(w, r)
- return
- }
if h.NotFound == nil {
http.Error(w, http.StatusText(http.StatusNotFound), http.StatusNotFound)
} else {