refactor: general-node and map-node to use flotte types for service registration
This commit is contained in:
14
internal/map-node/routes.go
Normal file
14
internal/map-node/routes.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package mapnode
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
func registerRoutes(router *gin.Engine) *gin.Engine {
|
||||
|
||||
router.GET("/ping", func(c *gin.Context) {
|
||||
c.JSON(200, gin.H{
|
||||
"message": "pong",
|
||||
})
|
||||
})
|
||||
|
||||
return router
|
||||
}
|
Reference in New Issue
Block a user