mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-02-27 03:12:00 +00:00
refactor: move resource handling to a controller
This commit is contained in:
@@ -14,6 +14,7 @@ func NewHealthController(router *gin.RouterGroup) *HealthController {
|
||||
|
||||
func (controller *HealthController) SetupRoutes() {
|
||||
controller.Router.GET("/health", controller.healthHandler)
|
||||
controller.Router.HEAD("/health", controller.healthHandler)
|
||||
}
|
||||
|
||||
func (controller *HealthController) healthHandler(c *gin.Context) {
|
||||
|
||||
Reference in New Issue
Block a user