using Microsoft.AspNetCore.Mvc; using Models; namespace Api.Controllers { [ApiController] [Route("api/[controller]")] public class DeviceController : Controller { [HttpGet] public async Task GetDevices(int userId) { return Ok(); } [HttpGet("logs/{userId}")] public async Task GetLogs(int userId) { return Ok(); } [HttpPut("Edit")] public async Task EditDevice([FromBody] Device device) { return Ok(); } } }