Contracts for buyer
This commit is contained in:
@@ -133,7 +133,7 @@ func GetDeviceData(c *gin.Context) {
|
||||
}
|
||||
|
||||
// Respond with the GeoJSON feature collection
|
||||
c.JSON(http.StatusOK, featureCollection)
|
||||
c.JSON(http.StatusOK, gin.H{"data": featureCollection})
|
||||
}
|
||||
|
||||
func GetDevicesByContract(c *gin.Context) {
|
||||
@@ -161,5 +161,5 @@ func GetDevicesByContract(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
// Respond with the devices
|
||||
c.JSON(http.StatusOK, devices)
|
||||
c.JSON(http.StatusOK,gin.H{"data" : devices})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user