fix get by id

This commit is contained in:
areeqakbr 2025-02-20 09:12:03 +07:00
parent 817cf85314
commit 41b8d59749
1 changed files with 1 additions and 1 deletions

View File

@ -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())