mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 23:07:54 +00:00
feat(apiv2): stubs
This commit is contained in:
parent
f785fa1204
commit
8a88b23021
10 changed files with 355 additions and 28 deletions
|
|
@ -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"));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue