caloggins
11/17/2016 - 4:15 PM

Secure.cs

public class Secure : NancyModule
{
    public Secure()
    {
        this.RequiresHttps();
        this.RequiresAuthentication();

        Get["/secure"] = o => HttpStatusCode.OK;

        Get["/needsclaim"] = o =>
        {
            this.RequiresClaims(Claim.Admin);

            return HttpStatusCode.OK;
        };
    }
}