Skip to content

Commit

Permalink
fix(routes): skip over endpoints that are DenyHTTP
Browse files Browse the repository at this point in the history
  • Loading branch information
Arqu committed Apr 30, 2021
1 parent 9f84a97 commit ee7d882
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ func (inst *Instance) GiveAPIServer(middleware func(handler http.HandlerFunc) ht
if arrayContainsString(ignoreMethods, methodName) {
continue
}
if call.Endpoint == DenyHTTP {
continue
}
handler := middleware(NewHTTPRequestHandler(inst, methodName))
// All endpoints use POST verb
httpVerb := http.MethodPost
Expand Down

0 comments on commit ee7d882

Please sign in to comment.