mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-13 17:22:54 -05:00
14 lines
363 B
C#
14 lines
363 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace ChrisKaczor.HomeMonitor.DeviceStatus.Service.Controllers;
|
|
|
|
[Route("[controller]")]
|
|
[ApiController]
|
|
public class StatusController(DeviceRepository deviceRepository) : ControllerBase
|
|
{
|
|
[HttpGet("recent")]
|
|
public ActionResult<IEnumerable<Device>> GetRecent()
|
|
{
|
|
return deviceRepository.Values;
|
|
}
|
|
} |