fix: use method-specific route for auth handler
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
func (s *Service) RegisterRoutes(mux *http.ServeMux) {
|
||||
mux.HandleFunc("/api/v1/auth/google", s.handleGoogleLogin)
|
||||
mux.HandleFunc("POST /api/v1/auth/google", s.handleGoogleLogin)
|
||||
}
|
||||
|
||||
func (s *Service) handleGoogleLogin(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user