mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-01 19:04:37 -04:00
19 lines
415 B
C#
19 lines
415 B
C#
using Nancy;
|
|
using Nancy.Responses.Negotiation;
|
|
|
|
namespace Radarr.Http
|
|
{
|
|
public abstract class RadarrModule : NancyModule
|
|
{
|
|
protected RadarrModule(string resource)
|
|
: base(resource)
|
|
{
|
|
}
|
|
|
|
protected Negotiator ResponseWithCode(object model, HttpStatusCode statusCode)
|
|
{
|
|
return Negotiate.WithModel(model).WithStatusCode(statusCode);
|
|
}
|
|
}
|
|
}
|