Last active
October 13, 2023 16:33
-
-
Save naeemaei/1f40ce654467f00a89bc9247b657bc4a to your computer and use it in GitHub Desktop.
Golang web api project gists
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package routers | |
import ( | |
"github.com/gin-gonic/gin" | |
"github.com/naeemaei/golang-clean-web-api/api/handlers" | |
) | |
func Health(r *gin.RouterGroup) { | |
handler := handlers.NewHealthHandler() | |
r.GET("/", handler.Health) // Call hanlder.Health method | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment