Created
December 17, 2020 19:14
-
-
Save AbubakarSiddiq/a54d0d046f3ded605c00931fe1978556 to your computer and use it in GitHub Desktop.
This file contains hidden or 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(config => | |
{ | |
config.DefaultApiVersion = new ApiVersion(1, 0); | |
config.AssumeDefaultVersionWhenUnspecified = true; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment