@@ -100,15 +100,15 @@ func Handler(
100100 // Check if the debug auth method should be enabled.
101101 enableDebugAuth := os .Getenv ("ENABLE_DEBUG_AUTH" ) != ""
102102 if enableDebugAuth {
103- mux .Handle ("POST /debug/ signin" , HandleDebugSignIn (conf .SecretKey , cmd ))
103+ mux .Handle ("POST /signin/debug " , HandleDebugSignIn (conf .SecretKey , cmd ))
104104 }
105105
106106 // Authenication routes.
107107 mux .Handle ("GET /signin" , HandleSignIn (enableDebugAuth ))
108- mux .Handle ("GET /github/ signin" , HandleOAuthSignIn (& githubConf ))
109- mux .Handle ("GET /github/callback" , HandleOAuthCallback (conf .SecretKey , cmd , & githubConf , FetchGithubUserID ))
110- mux .Handle ("GET /google/ signin" , HandleOAuthSignIn (& googleConf ))
111- mux .Handle ("GET /google/callback" , HandleOAuthCallback (conf .SecretKey , cmd , & googleConf , FetchGoogleUserID ))
108+ mux .Handle ("GET /signin/github " , HandleOAuthSignIn (& githubConf ))
109+ mux .Handle ("GET /signin/ github/callback" , HandleOAuthCallback (conf .SecretKey , cmd , & githubConf , FetchGithubUserID ))
110+ mux .Handle ("GET /signin/google " , HandleOAuthSignIn (& googleConf ))
111+ mux .Handle ("GET /signin/ google/callback" , HandleOAuthCallback (conf .SecretKey , cmd , & googleConf , FetchGoogleUserID ))
112112 mux .Handle ("POST /signout" , HandleSignOutForm (cmd ))
113113
114114 // Public blog routes.
0 commit comments