update in device controller

This commit is contained in:
Thomas Fransolet 2021-01-04 16:35:50 +01:00
parent 2dcfa0ebe8
commit 1647763c94

View File

@ -45,7 +45,7 @@ namespace MyCore.Controllers
/// </summary>
/// <param name="userId">Id of user</param>
[ProducesResponseType(typeof(List<DeviceSummaryDTO>), 200)]
[HttpGet]
[HttpGet("{userId}")]
public ObjectResult GetAll(string userId)
{
try
@ -72,7 +72,7 @@ namespace MyCore.Controllers
/// </summary>
/// <param name="deviceId">id of device</param>
[ProducesResponseType(typeof(DeviceDetailDTO), 200)]
[HttpGet("{deviceId}")]
[HttpGet("detail/{deviceId}")]
public ObjectResult GetDetail(string deviceId)
{
try