Files
old-backend/routes/public_routes.go

18 lines
413 B
Go
Raw Normal View History

package routes
import (
2023-09-11 08:08:24 +02:00
"gitlab.com/pactual1/backend/controllers"
2023-09-11 08:08:24 +02:00
2023-09-06 11:58:33 +02:00
"github.com/gin-gonic/gin"
)
2023-09-18 12:27:40 +02:00
func RegisterPublicRoutes(r *gin.Engine) {
2023-09-19 08:15:42 +02:00
r.GET("/dashboard/map/contract/devices", controllers.GetDevicesByContract)
r.GET("/dashboard/map/contracts", controllers.GetLatestContracts)
r.GET("/dashboard/map/device_data", controllers.GetDeviceData)
r.POST("/device_data/save", controllers.SaveDeviceInfo)
}