mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Remove unversioned API endpoints
This commit is contained in:
parent
fb236726aa
commit
45775f2e8e
5 changed files with 1 additions and 10 deletions
|
|
@ -54,16 +54,11 @@ namespace PluralKit.API
|
|||
.SetCompatibilityVersion(CompatibilityVersion.Latest)
|
||||
.AddNewtonsoftJson(); // sorry MS, this just does *more*
|
||||
|
||||
services.AddApiVersioning(c =>
|
||||
{
|
||||
c.AssumeDefaultVersionWhenUnspecified = true;
|
||||
c.DefaultApiVersion = ApiVersion.Parse("1.0");
|
||||
});
|
||||
services.AddApiVersioning();
|
||||
|
||||
services.AddVersionedApiExplorer(c =>
|
||||
{
|
||||
c.GroupNameFormat = "'v'VV";
|
||||
c.DefaultApiVersion = ApiVersion.Parse("1.0");
|
||||
c.ApiVersionParameterSource = new UrlSegmentApiVersionReader();
|
||||
c.SubstituteApiVersionInUrl = true;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue