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

8
.env Normal file
View File

@@ -0,0 +1,8 @@
TUTOR_HTTP_ADDR=:8080
DATABASE_URL=postgresql://neondb_owner:npg_MNHX2arVQqI3@ep-dry-star-akdkpb5p.c-3.us-west-2.aws.neon.tech/neondb?sslmode=require
TUTOR_ENV=development
TUTOR_WORKFLOW_RUNTIME=deepseek-v4-flash
TUTOR_MODEL_KEY=deepseek-v4-flash
TUTOR_IMAGE_MODEL_KEY=gpt-image-v2
THIRDONE_BIN=thirdone
TUTOR_PUBLIC_URL=https://tutor.uljisoft.com

View File

@@ -6,7 +6,7 @@ import (
) )
func (s *Service) RegisterRoutes(mux *http.ServeMux) { 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) { func (s *Service) handleGoogleLogin(w http.ResponseWriter, r *http.Request) {