feat(apiv2): stubs

This commit is contained in:
spiral
2021-09-29 22:30:20 -04:00
parent f785fa1204
commit 8a88b23021
10 changed files with 355 additions and 28 deletions

View File

@@ -117,6 +117,13 @@ namespace PluralKit.API
//app.UseHsts();
}
// add X-PluralKit-Version header
app.Use((ctx, next) =>
{
ctx.Response.Headers.Add("X-PluralKit-Version", BuildInfoService.Version);
return next();
});
//app.UseHttpsRedirection();
app.UseCors(opts => opts.AllowAnyMethod().AllowAnyOrigin().WithHeaders("Content-Type", "Authorization"));