fix: use method-specific route for auth handler

This commit is contained in:
user
2026-04-27 13:25:45 +09:00
parent 3aa1d92c98
commit 918fe04591
2 changed files with 9 additions and 1 deletions

View File

@@ -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) {