diff --git a/delivery/controller/devices_controller.go b/delivery/controller/devices_controller.go index e82cfea..72b0e68 100644 --- a/delivery/controller/devices_controller.go +++ b/delivery/controller/devices_controller.go @@ -71,7 +71,7 @@ func (dc *DeviceController) GetAllDevices() gin.HandlerFunc { func (dc *DeviceController) GetDeviceByID() gin.HandlerFunc { return func(c *gin.Context) { - id := c.Param("id") + id := c.Param("uuid") uuid, err := uuid.Parse(id) if err != nil{ common.ErrorResponses(c, http.StatusBadGateway, err.Error())