Skip to content

Commit

Permalink
#373 avoid router's auto redirection to /auth/
Browse files Browse the repository at this point in the history
  • Loading branch information
bnfinet committed Aug 13, 2021
1 parent 32633f5 commit 8542b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func main() {
router.HandlerFunc(http.MethodGet, "/logout", timelog.TimeLog(logoutH))

callH := http.HandlerFunc(handlers.CallbackHandler)
router.HandlerFunc(http.MethodGet, "/auth/", timelog.TimeLog(callH))
router.HandlerFunc(http.MethodGet, "/auth", timelog.TimeLog(callH))

authStateH := http.HandlerFunc(handlers.AuthStateHandler)
router.HandlerFunc(http.MethodGet, "/auth/:state/", timelog.TimeLog(authStateH))
Expand Down

0 comments on commit 8542b6b

Please sign in to comment.