Added measurements, and devices statsh
Added stats endpoints
This commit is contained in:
@@ -38,7 +38,14 @@ func RegisterPublicRoutes(r *gin.Engine) {
|
||||
// Locations
|
||||
r.GET("/locations", controllers.SearchPlace)
|
||||
|
||||
|
||||
// Notifications
|
||||
r.GET("/notifications", controllers.GetNotifications)
|
||||
|
||||
// Stats
|
||||
r.GET("/stats/measurements", controllers.GetCompanyRelatedDeviceInfoCount)
|
||||
r.GET("/stats/devices", controllers.GetCompanyRelatedDeviceInfoCountWithTempRange)
|
||||
r.GET("/stats/contracts", controllers.GetContractCountByStatus)
|
||||
r.GET("/stats/contracts/total", controllers.GetTotalContractCount)
|
||||
r.GET("/stats/invoices", controllers.GetInvoiceCountByStatus)
|
||||
r.GET("/stats/milestones", controllers.GetContractsMatchingDeviceLocation)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user