mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-28 16:08:38 +00:00
Fix exception on searching slots without a query
This commit is contained in:
parent
93a452814c
commit
14730f754b
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers {
|
||||||
|
|
||||||
[HttpGet("slots/search")]
|
[HttpGet("slots/search")]
|
||||||
public async Task<IActionResult> SearchSlots([FromQuery] string query) {
|
public async Task<IActionResult> SearchSlots([FromQuery] string query) {
|
||||||
|
if(query == null) return this.BadRequest();
|
||||||
query = query.ToLower();
|
query = query.ToLower();
|
||||||
|
|
||||||
string[] keywords = query.Split(" ");
|
string[] keywords = query.Split(" ");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue