Added create contact ednpoint
This commit is contained in:
@@ -161,5 +161,5 @@ func GetDevicesByContract(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
// Respond with the devices
|
||||
c.JSON(http.StatusOK,gin.H{"data" : devices})
|
||||
c.JSON(http.StatusOK,gin.H{"data" : models.ConvertDeviceToResponse(devices)})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user