mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-12-17 21:14:58 +01:00
Add Cargo Service & Controller
This commit is contained in:
13
Pulsar/Features/Cargo/CargoController.cs
Normal file
13
Pulsar/Features/Cargo/CargoController.cs
Normal 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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user