Created
October 9, 2019 21:49
-
-
Save PxyUp/fe69e6725a516b001d85f8d3a1282f36 to your computer and use it in GitHub Desktop.
Router in main app
This file contains 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 router | |
import ( | |
"github.com/gin-gonic/gin" | |
"go_monogrepo/packages/shared/handlers/health" | |
) | |
func GetEngine() *gin.Engine { | |
r := gin.New() | |
r.Use(gin.Recovery()) | |
r.GET("/", health.Health("Main app")) | |
return r | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment