Created
May 6, 2017 19:40
-
-
Save aramkoukia/b4d685a6e74bfd3b090c7809bde557bc to your computer and use it in GitHub Desktop.
configure .net core routes
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 Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) | |
| { | |
| app.UseMvc(routes => | |
| { | |
| routes.MapWebApiRoute("DefaultApi", "api/{controller}/{id?}"); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment