Files
mixtape/zero.Web/Controllers/SearchController.cs
T

23 lines
564 B
C#
Raw Normal View History

2021-09-01 23:09:22 +02:00
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using zero.Core.Entities;
using zero.Core.Identity;
2021-09-02 22:44:20 +02:00
using zero.Core.Models;
2021-09-03 00:23:39 +02:00
using zero.Core.Services;
2021-09-01 23:09:22 +02:00
namespace zero.Web.Controllers
{
[ZeroAuthorize]
public class SearchController : BackofficeController
{
IBackofficeSearchService SearchService;
public SearchController(IBackofficeSearchService searchService)
{
SearchService = searchService;
}
2021-09-02 22:44:20 +02:00
public async Task<ListResult<SearchResult>> Query([FromQuery] string query) => await SearchService.Query(query);
2021-09-01 23:09:22 +02:00
}
}