fix: use method-specific route for auth handler
This commit is contained in:
8
.env
Normal file
8
.env
Normal 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
|
||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user