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

37 lines
819 B
C#

using Microsoft.AspNetCore.Mvc;
using Props.Models.Search;
using Props.Services.Modules;
namespace Props.Controllers
{
public class SearchOutlineController : ApiControllerBase
{
private SearchOutline defaultOutline = new SearchOutline();
public SearchOutlineController()
{
}
[HttpGet]
[Route("Filters")]
public IActionResult GetFilters()
{
return Ok(defaultOutline.Filters);
}
[HttpGet]
[Route("DisabledShops")]
public IActionResult GetDisabledShops()
{
return Ok(defaultOutline.Enabled);
}
[HttpGet]
[Route("SearchOutlineName")]
public IActionResult GetSearchOutlineName()
{
return Ok(defaultOutline.Name);
}
}
}