Upstream sync

This commit is contained in:
Senad Uka
2023-09-27 08:04:50 +02:00
parent 7320fcb527
commit 937c61c635
15 changed files with 517 additions and 85 deletions

View File

@@ -11,7 +11,12 @@ func RegisterPublicRoutes(r *gin.Engine) {
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)
r.POST("/device_data/save", controllers.SaveDeviceInfo)
r.GET("/buyers/", controllers.ListBuyers)
r.GET("/product_templates/", controllers.ListProductTemplates)
r.GET("/text_templates/", controllers.ListTextTemplates)
r.POST("/text_templates/save", controllers.CreateTextTemplate)
r.GET("/product_templates/:template_id", controllers.GetProductTemplate)
}