upstream sync

This commit is contained in:
Senad Uka
2023-10-10 08:39:50 +02:00
parent 598f706958
commit d3011d77ff
5 changed files with 139 additions and 58 deletions

View File

@@ -15,7 +15,7 @@ func RegisterPublicRoutes(r *gin.Engine) {
// Invoices
r.GET("/invoices", controllers.GetInvoices)
r.GET("/invoice/:id", controllers.GetInvoiceByID)
r.GET("/invoice/:id", controllers.GetInvoiceByID)
r.POST("/device_data/save", controllers.SaveDeviceInfo)
r.GET("/buyers/", controllers.ListBuyers)
@@ -29,4 +29,6 @@ func RegisterPublicRoutes(r *gin.Engine) {
r.GET("/contracts", controllers.GetBuyerContracts)
r.POST("/contracts/create", controllers.CreateContract)
r.GET("/contracts/:contract_id", controllers.GetContractByID)
r.PATCH("/contracts/:contract_id", controllers.UpdateContract)
}