From 41b8d597490e31f432ae4db21c6b0f12bd4b1a77 Mon Sep 17 00:00:00 2001 From: areeqakbr Date: Thu, 20 Feb 2025 09:12:03 +0700 Subject: [PATCH] fix get by id --- delivery/controller/devices_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())