Added primitive search mechanism in backend.
Began implementing search mechanism for frontend.
This commit is contained in:
@@ -15,24 +15,10 @@ namespace Props.Controllers
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Route("Shops/Available")]
|
||||
[Route("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);
|
||||
return Ok(shopManager.GetAllShopNames());
|
||||
}
|
||||
}
|
||||
}
|
37
Props/Controllers/SearchOutlineController.cs
Normal file
37
Props/Controllers/SearchOutlineController.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user