Skip to content

Instantly share code, notes, and snippets.

@GeradeDev
Created August 27, 2019 15:11
Show Gist options
  • Save GeradeDev/c6f99ec3c648067cc1a971d379f72e1d to your computer and use it in GitHub Desktop.
Save GeradeDev/c6f99ec3c648067cc1a971d379f72e1d to your computer and use it in GitHub Desktop.
services.AddApiVersioning(options =>
{
options.ReportApiVersions = true;
options.DefaultApiVersion = new ApiVersion(1, 0);
options.AssumeDefaultVersionWhenUnspecified = true;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment