mirror of
https://github.com/Lidarr/Lidarr
synced 2026-01-15 03:52:31 +01:00
18 lines
415 B
C#
18 lines
415 B
C#
using Nancy;
|
|
using Nancy.Responses.Negotiation;
|
|
|
|
namespace Lidarr.Http
|
|
{
|
|
public abstract class LidarrModule : NancyModule
|
|
{
|
|
protected LidarrModule(string resource)
|
|
: base(resource)
|
|
{
|
|
}
|
|
|
|
protected Negotiator ResponseWithCode(object model, HttpStatusCode statusCode)
|
|
{
|
|
return Negotiate.WithModel(model).WithStatusCode(statusCode);
|
|
}
|
|
}
|
|
}
|