using Biskilog_Accounting.Shared.CustomModels; using Biskilog_Accounting.Shared.Interfaces; using Biskilog_Accounting.Shared.POSModels; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace Biskilog_Accounting.Server.Controllers { [Route("api/[controller]")] [ApiController] public class CustomerController : ControllerBase { private readonly ICustomer m_customerService; public CustomerController(ICustomer a_customerService) { m_customerService = a_customerService; } /// /// Endpoint to return all customers /// [Authorize] [HttpGet, Route("accounts")] public IEnumerable GetCustomers() { return m_customerService.FetchCustomers(); } } }