Added invoices endpoint

This commit is contained in:
Nedim
2023-09-27 19:20:44 +02:00
parent 937c61c635
commit 60042ebd30
9 changed files with 342 additions and 88 deletions

View File

@@ -8,10 +8,15 @@ import (
func RegisterPublicRoutes(r *gin.Engine) {
// Map dashboard
r.GET("/dashboard/map/contract/devices", controllers.GetDevicesByContract)
r.GET("/dashboard/map/contracts", controllers.GetLatestContracts)
r.GET("/dashboard/map/device_data", controllers.GetDeviceData)
// Invoices
r.GET("/invoices", controllers.GetInvoices)
r.GET("/invoice/:id", controllers.GetInvoiceByID)
r.POST("/device_data/save", controllers.SaveDeviceInfo)
r.GET("/buyers/", controllers.ListBuyers)
r.GET("/product_templates/", controllers.ListProductTemplates)