38 lines
941 B
C#
38 lines
941 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Props.Models.Search;
|
|
using Props.Services.Modules;
|
|
|
|
namespace Props.Controllers
|
|
{
|
|
public class SearchController : ApiControllerBase
|
|
{
|
|
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/Filters")]
|
|
public IActionResult GetDefaultFilters()
|
|
{
|
|
return Ok(defaultOutline.Filters);
|
|
}
|
|
|
|
[HttpGet]
|
|
[Route("Default/DisabledShops")]
|
|
public IActionResult GetDefaultDisabledShops()
|
|
{
|
|
return Ok(defaultOutline.Disabled);
|
|
}
|
|
}
|
|
} |