fix get by id
This commit is contained in:
parent
817cf85314
commit
41b8d59749
|
|
@ -71,7 +71,7 @@ func (dc *DeviceController) GetAllDevices() gin.HandlerFunc {
|
||||||
|
|
||||||
func (dc *DeviceController) GetDeviceByID() gin.HandlerFunc {
|
func (dc *DeviceController) GetDeviceByID() gin.HandlerFunc {
|
||||||
return func(c *gin.Context) {
|
return func(c *gin.Context) {
|
||||||
id := c.Param("id")
|
id := c.Param("uuid")
|
||||||
uuid, err := uuid.Parse(id)
|
uuid, err := uuid.Parse(id)
|
||||||
if err != nil{
|
if err != nil{
|
||||||
common.ErrorResponses(c, http.StatusBadGateway, err.Error())
|
common.ErrorResponses(c, http.StatusBadGateway, err.Error())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue