using Microsoft.AspNetCore.Mvc; using Props.Models.Search; using Props.Services.Modules; namespace Props.Controllers { [ApiController] [Route("api/[Controller]")] public class SearchController : ControllerBase { private SearchOutline defaultOutline = new SearchOutline(); IShopManager shopManager; public SearchController(IShopManager shopManager) { this.shopManager = shopManager; } [HttpGet] [Route("Shops/Available")] public IActionResult GetAvailableShops() { return Ok(shopManager.AvailableShops()); } [HttpGet] [Route("Default/Outline/Filters")] public IActionResult GetDefaultFilters() { return Ok(defaultOutline.Filters); } [HttpGet] [Route("Default/Outline/DisabledShops")] public IActionResult GetDefaultDisabledShops() { return Ok(defaultOutline.Disabled); } } }