diff --git a/.env b/.env new file mode 100644 index 0000000..a7bf8c7 --- /dev/null +++ b/.env @@ -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 diff --git a/internal/auth/handler.go b/internal/auth/handler.go index 1daad54..9bc434c 100644 --- a/internal/auth/handler.go +++ b/internal/auth/handler.go @@ -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) {