You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/src/Lidarr.Http/LidarrModule.cs

19 lines
415 B

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);
}
}
}