Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Routes = func() { router := SetUpRouter() basePath := router.Group("/v1") RegisterUserRoutes(basePath) log.Fatalln(router.Run(":" + os.Getenv("SERVER_PORT"))) router.GET("/", controller.HomepageHandler) }
Routes defines router configuration like port and version.
Functions ¶
func RegisterUserRoutes ¶
func RegisterUserRoutes(rg *gin.RouterGroup)
RegisterUserRoutes defines endpoints of the server.
func SetUpRouter ¶
SetUpRouter setting up the router Engine and returns the router.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.