feat: rate limiter lets api v1 requests through

This commit is contained in:
sam 2024-12-25 12:08:53 -05:00
parent 7791c91960
commit 140419a1ca
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
2 changed files with 3 additions and 1 deletions

View file

@ -38,7 +38,7 @@ func (hn *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
// all public api endpoints are prefixed with this
if !strings.HasPrefix(r.URL.Path, "/api/v2") {
if !strings.HasPrefix(r.URL.Path, "/api/v2") && !strings.HasPrefix(r.URL.Path, "/api/v1") {
w.WriteHeader(http.StatusNotFound)
return
}