refactor: remove asp.net versioning

This commit is contained in:
spiral
2022-01-19 19:25:04 -05:00
parent 1626e0f548
commit eb4f53c69e
14 changed files with 119 additions and 36 deletions

View File

@@ -64,15 +64,6 @@ public class Startup
throw Errors.GenericBadRequest
);
services.AddApiVersioning();
services.AddVersionedApiExplorer(c =>
{
c.GroupNameFormat = "'v'VV";
c.ApiVersionParameterSource = new UrlSegmentApiVersionReader();
c.SubstituteApiVersionInUrl = true;
});
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1.0", new OpenApiInfo { Title = "PluralKit", Version = "1.0" });