auto logout
This commit is contained in:
@@ -45,6 +45,7 @@ func (h *Handler) RegisterRoutes(router *mux.Router) {
|
||||
authroute.HandleFunc("/{provider}/authcode", h.handlerRedirectCode).Methods(http.MethodGet)
|
||||
|
||||
protec := authroute.PathPrefix("/redirect").Subrouter()
|
||||
|
||||
protec.Use(AuthMiddleware)
|
||||
protec.HandleFunc("/dashboard", h.handleRedirectDash).Methods(http.MethodGet)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user