routes

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 5 Imported by: 0

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

func SetUpRouter() *gin.Engine

SetUpRouter setting up the router Engine and returns the router.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL