Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions internal/api/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,9 @@ func (a *API) Verify(w http.ResponseWriter, r *http.Request) error {
return err
}
return a.verifyPost(w, r, params)
default:
// this should have been handled by Chi
panic("Only GET and POST methods allowed")
}
//chi handles by sending a 405 Method Not Allowed response returning nil to compile
return nil
}

func (a *API) verifyGet(w http.ResponseWriter, r *http.Request, params *VerifyParams) error {
Expand Down