Add envoy proxy
This commit is contained in:
@ -60,9 +60,12 @@ func initRouter(dbConn *gorm.DB) *gin.Engine {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
router := gin.Default()
|
||||
|
||||
router.GET("/ping", handlePing)
|
||||
router.GET("/", handleGetMachines(dbConn))
|
||||
router.GET("/:machineId", handleGetMachine(dbConn))
|
||||
routes := router.Group("/machines")
|
||||
{
|
||||
routes.GET("/ping", handlePing)
|
||||
routes.GET("", handleGetMachines(dbConn))
|
||||
routes.GET("/:machineId", handleGetMachine(dbConn))
|
||||
}
|
||||
|
||||
return router
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user