Add auth protection sample and standardize json.
This commit is contained in:
@@ -16,7 +16,7 @@ func RegisterRoutes(rg *gin.RouterGroup) {
|
||||
rg.Use(middleware.Logger())
|
||||
|
||||
// Define routes
|
||||
rg.GET("/health", handlers.HealthCheck)
|
||||
rg.GET("/health", middleware.AuthRequired(), handlers.HealthCheck)
|
||||
|
||||
// Logto authentication routes
|
||||
rg.GET("/auth/", handlers.HomeHandler)
|
||||
|
||||
Reference in New Issue
Block a user