2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-09-10 04:51:43 -04:00

Add Cargo Service & Controller

This commit is contained in:
2024-05-07 21:13:29 +10:00
parent f3ce62b551
commit bcc15de82b
8 changed files with 114 additions and 50 deletions

View File

@@ -0,0 +1,13 @@
using Observatory.Framework.Files;
namespace Pulsar.Features.Cargo;
[ApiController]
[Route("api/[controller]")]
public class CargoController(ICargoService cargoService) : ControllerBase
{
public async Task<ActionResult<CargoFile>> Get()
{
return Ok(await cargoService.Get());
}
}