Ready to test in Fab

This commit is contained in:
2023-06-03 19:05:08 -07:00
parent 1f5deedc73
commit 2c38ecb399
46 changed files with 1159 additions and 347 deletions

View File

@ -0,0 +1,20 @@
using Barcode.Host.Shared.Models.Stateless;
using Microsoft.AspNetCore.Mvc;
using System.Text.Json;
namespace Barcode.Host.Server.ApiControllers;
[Route("api/[controller]")]
public class LastScanController : Controller, ILastScanController<IActionResult>
{
private readonly ILastScanService _LastScanService;
public LastScanController(ILastScanService lastScanService) =>
_LastScanService = lastScanService;
[HttpGet()]
public IActionResult GetScan() =>
Json(_LastScanService.GetScan(), new JsonSerializerOptions { PropertyNamingPolicy = null, WriteIndented = true });
}