added health routes
This commit is contained in:
+5
-1
@@ -9,6 +9,10 @@ import (
|
||||
)
|
||||
|
||||
func SetupRoutes(router *mux.Router, db *sql.DB) {
|
||||
|
||||
router.HandleFunc("/health", handlers.HealthHandler).Methods("GET")
|
||||
router.HandleFunc("/ready", handlers.ReadyHandler).Methods("GET")
|
||||
|
||||
authRoutes := router.PathPrefix("/v1/auth").Subrouter()
|
||||
authRoutes.HandleFunc("/login", handlers.GoogleLogin).Methods("GET")
|
||||
authRoutes.HandleFunc("/callback", handlers.GoogleCallback).Methods("GET")
|
||||
@@ -16,7 +20,7 @@ func SetupRoutes(router *mux.Router, db *sql.DB) {
|
||||
authRoutes.HandleFunc("/logout", handlers.LogoutHandler).Methods("GET")
|
||||
|
||||
// authRoutes.HandleFunc("/microsoft/login", handlers.MicrosoftLogin).Methods("GET")
|
||||
// authRoutes.HandleFunc("/microsoft/callback", handlers.MicrosoftCallback).Methods("GET")
|
||||
// authRoutes.HandleFunc("/microsoft/callback", handlers.MicrosotCallback).Methods("GET")
|
||||
|
||||
router.PathPrefix("/swagger/").Handler(httpSwagger.WrapHandler)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user