Carter icon indicating copy to clipboard operation
Carter copied to clipboard

versionsets

Open MannusEtten opened this issue 1 year ago • 1 comments

i am using api versioning by headers so in my regular minimal api code i do have

builder.Services.AddApiVersioning(options => { options.DefaultApiVersion = apiVersion1; options.ReportApiVersions = true; options.AssumeDefaultVersionWhenUnspecified = true; options.ApiVersionReader = new HeaderApiVersionReader("X-Api-Version"); });

app.WithApiVersionSet(versionSet).MapToApiVersion(apiVersion3);

how can i bring this middleware and versioning to Carter Modules?

MannusEtten avatar Dec 24 '24 06:12 MannusEtten

This code should work with Carter I believe

jchannon avatar Dec 24 '24 12:12 jchannon