New: Use ASP.NET Core instead of Nancy

This commit is contained in:
ta264
2021-03-11 20:56:24 +00:00
parent d348232e0d
commit 58ddbcd77e
158 changed files with 2747 additions and 3544 deletions
+1 -9
View File
@@ -1,8 +1,5 @@
using System;
using Nancy;
using Nancy.Responses;
using Readarr.Http.ErrorManagement;
using Readarr.Http.Extensions;
using System.Net;
namespace Readarr.Http.Exceptions
{
@@ -19,11 +16,6 @@ namespace Readarr.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();