2021-07-22 21:12:27 +00:00
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using Props.Models.Search;
|
|
|
|
using Props.Services.Modules;
|
|
|
|
|
|
|
|
namespace Props.Controllers
|
|
|
|
{
|
2021-07-24 07:32:30 +00:00
|
|
|
public class SearchController : ApiControllerBase
|
2021-07-22 21:12:27 +00:00
|
|
|
{
|
|
|
|
private SearchOutline defaultOutline = new SearchOutline();
|
|
|
|
IShopManager shopManager;
|
|
|
|
|
|
|
|
public SearchController(IShopManager shopManager)
|
|
|
|
{
|
|
|
|
this.shopManager = shopManager;
|
|
|
|
}
|
|
|
|
|
|
|
|
[HttpGet]
|
2021-08-05 06:22:19 +00:00
|
|
|
[Route("Available")]
|
2021-07-22 21:12:27 +00:00
|
|
|
public IActionResult GetAvailableShops()
|
|
|
|
{
|
2021-08-05 06:22:19 +00:00
|
|
|
return Ok(shopManager.GetAllShopNames());
|
2021-07-22 21:12:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|