using DrinkRateAPI.ApiModels.CompanyTable; using DrinkRateAPI.Services; using Microsoft.AspNetCore.Mvc; namespace DrinkRateAPI.Controllers; [ApiController] [Route("companyTables")] public class CompanyTableController : ControllerBase { private CompanyTableService _companyTableService; public CompanyTableController(CompanyTableService companyTableService) { _companyTableService = companyTableService; } [HttpGet("{companyTableName}")] [Produces("application/json")] public async Task GetCompanyTable([FromRoute] string companyTableName) { return await _companyTableService.GetCompanyTable(companyTableName); } }