mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-31 12:10:19 -07:00
New: Update Nancy to 2.0
This commit is contained in:
parent
425bd8964f
commit
17c9fc419c
44 changed files with 266 additions and 266 deletions
|
@ -16,13 +16,13 @@ namespace Lidarr.Api.V1.Artist
|
|||
: base("/artist/lookup")
|
||||
{
|
||||
_searchProxy = searchProxy;
|
||||
Get["/"] = x => Search();
|
||||
Get("/", x => Search());
|
||||
}
|
||||
|
||||
private Response Search()
|
||||
private object Search()
|
||||
{
|
||||
var searchResults = _searchProxy.SearchForNewArtist((string)Request.Query.term);
|
||||
return MapToResource(searchResults).ToList().AsResponse();
|
||||
return MapToResource(searchResults).ToList();
|
||||
}
|
||||
|
||||
private static IEnumerable<ArtistResource> MapToResource(IEnumerable<NzbDrone.Core.Music.Artist> artist)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue