1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-23 22:25:14 -04:00

New: Use ASP.NET Core instead of Nancy

This commit is contained in:
ta264
2021-10-21 21:04:19 +01:00
committed by Qstick
parent c14ef7bee7
commit 2d53ec24f8
160 changed files with 2866 additions and 3657 deletions
+1 -9
View File
@@ -1,8 +1,5 @@
using System;
using Nancy;
using Nancy.Responses;
using Radarr.Http.ErrorManagement;
using Radarr.Http.Extensions;
using System.Net;
namespace Radarr.Http.Exceptions
{
@@ -19,11 +16,6 @@ namespace Radarr.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();