props/Props/Controllers/SearchController.cs
Harrison Deng c94ea4a624 Added primitive search mechanism in backend.
Began implementing search mechanism for frontend.
2021-08-05 01:22:19 -05:00

24 lines
583 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("Available")]
public IActionResult GetAvailableShops()
{
return Ok(shopManager.GetAllShopNames());
}
}
}