New: Use ASP.NET Core instead of Nancy

(cherry picked from commit 58ddbcd77e17ef95ecfad4b746084ee9326116f3)
This commit is contained in:
ta264
2021-03-15 21:32:12 +00:00
parent 7d494f9743
commit dbdc527f2e
122 changed files with 2177 additions and 2838 deletions

View File

@@ -1,8 +1,5 @@
using System;
using Nancy;
using Nancy.Responses;
using Prowlarr.Http.ErrorManagement;
using Prowlarr.Http.Extensions;
using System.Net;
namespace Prowlarr.Http.Exceptions
{
@@ -19,11 +16,6 @@ namespace Prowlarr.Http.Exceptions
Content = content;
}
public JsonResponse<ErrorModel> ToErrorResponse(NancyContext context)
{
return new ErrorModel(this).AsResponse(context, StatusCode);
}
private static string GetMessage(HttpStatusCode statusCode, object content)
{
var result = statusCode.ToString();