From 03c8a56fcf64e2b73f359a42b8ecbf858aec3d3b Mon Sep 17 00:00:00 2001 From: Mrigangha Gupta Date: Fri, 9 Jan 2026 22:21:39 +0530 Subject: [PATCH] panic removed from verfiy --- internal/api/verify.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/api/verify.go b/internal/api/verify.go index 6209774bbc..354c3362f7 100644 --- a/internal/api/verify.go +++ b/internal/api/verify.go @@ -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 {