File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
using Microsoft . AspNet . Builder ;
2
- using Microsoft . AspNet . Routing ;
3
2
using Microsoft . Framework . DependencyInjection ;
4
3
5
4
namespace HelloMvc
@@ -15,7 +14,10 @@ public void Configure(IApplicationBuilder app)
15
14
{
16
15
app . UseErrorPage ( ) ;
17
16
18
- app . UseMvc ( ) ;
17
+ app . UseMvc ( routes =>
18
+ {
19
+ routes . MapRoute ( "default" , "{controller=Home}/{action=Index}/{id?}" ) ;
20
+ } ) ;
19
21
20
22
app . UseWelcomePage ( ) ;
21
23
}
Original file line number Diff line number Diff line change 12
12
"dependencies" : {
13
13
"Kestrel" : " 1.0.0-*" ,
14
14
"Microsoft.AspNet.Diagnostics" : " 1.0.0-*" ,
15
- "Microsoft.AspNet.Hosting" : " 1.0.0-*" ,
16
15
"Microsoft.AspNet.Mvc" : " 6.0.0-*" ,
17
16
"Microsoft.AspNet.Server.IIS" : " 1.0.0-*" ,
18
17
"Microsoft.AspNet.Server.WebListener" : " 1.0.0-*"
You can’t perform that action at this time.
0 commit comments