Only report command errors to sentry and other minor tweaks
This commit is contained in:
parent
fb169738fe
commit
c4f10f3f7b
6 changed files with 44 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using Nancy;
|
||||
using Nancy.Bootstrapper;
|
||||
using Nancy.TinyIoc;
|
||||
|
@ -11,13 +11,12 @@ namespace Geekbot.net.WebApi
|
|||
{
|
||||
|
||||
//CORS Enable
|
||||
pipelines.AfterRequest.AddItemToEndOfPipeline((ctx) =>
|
||||
pipelines.AfterRequest.AddItemToEndOfPipeline(ctx =>
|
||||
{
|
||||
ctx.Response.WithHeader("Access-Control-Allow-Origin", "*")
|
||||
.WithHeader("Access-Control-Allow-Methods", "GET")
|
||||
.WithHeader("Access-Control-Allow-Headers", "Accept, Origin, Content-type")
|
||||
.WithHeader("Last-Modified", DateTime.Now.ToString());
|
||||
|
||||
.WithHeader("Last-Modified", Process.GetCurrentProcess().StartTime.ToString());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue