Remove unnecessary routes

This commit is contained in:
Astrian Zheng 2023-10-11 16:25:15 +11:00
parent 53aca10781
commit fbb1fcb566
8 changed files with 1 additions and 6 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@ bin
obj obj
/.vscode /.vscode
/.vs/FIT5032-Assignment /.vs/FIT5032-Assignment
/.vs
packages/ packages/
FIT5032-Assignment/App_Data/FIT5032_Assignment.mdf FIT5032-Assignment/App_Data/FIT5032_Assignment.mdf
FIT5032-Assignment/App_Data/FIT5032_Assignment_log.ldf FIT5032-Assignment/App_Data/FIT5032_Assignment_log.ldf

View File

@ -19,12 +19,6 @@ namespace FIT5032_Assignment
url: "{action}/{id}", url: "{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
); );
routes.MapRoute(
name: "HomeAlternative",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
} }
} }
} }