props/Props/Controllers/SearchController.cs

24 lines
583 B
C#
Raw Normal View History

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
{
private SearchOutline defaultOutline = new SearchOutline();
IShopManager shopManager;
public SearchController(IShopManager shopManager)
{
this.shopManager = shopManager;
}
[HttpGet]
[Route("Available")]
public IActionResult GetAvailableShops()
{
return Ok(shopManager.GetAllShopNames());
}
}
}