feat(apiv2): group stubs, authentication middleware, /systems/:id endpoint

This commit is contained in:
spiral 2021-10-01 21:50:01 -04:00
parent 8a88b23021
commit 57722e035b
No known key found for this signature in database
GPG key ID: A6059F0CA0E1BD31
6 changed files with 227 additions and 6 deletions

View file

@ -124,6 +124,8 @@ namespace PluralKit.API
return next();
});
app.UseMiddleware<AuthorizationTokenHandlerMiddleware>();
//app.UseHttpsRedirection();
app.UseCors(opts => opts.AllowAnyMethod().AllowAnyOrigin().WithHeaders("Content-Type", "Authorization"));