diff --git a/MyCore/Controllers/Devices/DeviceController.cs b/MyCore/Controllers/Devices/DeviceController.cs index db518e8..7cb13e4 100644 --- a/MyCore/Controllers/Devices/DeviceController.cs +++ b/MyCore/Controllers/Devices/DeviceController.cs @@ -45,7 +45,7 @@ namespace MyCore.Controllers /// /// Id of user [ProducesResponseType(typeof(List), 200)] - [HttpGet] + [HttpGet("{userId}")] public ObjectResult GetAll(string userId) { try @@ -72,7 +72,7 @@ namespace MyCore.Controllers /// /// id of device [ProducesResponseType(typeof(DeviceDetailDTO), 200)] - [HttpGet("{deviceId}")] + [HttpGet("detail/{deviceId}")] public ObjectResult GetDetail(string deviceId) { try