Created
November 9, 2019 14:02
-
-
Save AbubakarSiddiq/38a9812527ad7a6ae3a442a516dc14b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddControllers(); | |
services.AddApiVersioning(o => { | |
o.ReportApiVersions = true; | |
o.AssumeDefaultVersionWhenUnspecified = true; | |
o.DefaultApiVersion = new ApiVersion(1, 0); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment