We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39f7f16 commit 269b314Copy full SHA for 269b314
samples/angular/MusicStore/Controllers/HomeController.cs
@@ -1,8 +1,3 @@
1
-using System;
2
-using System.Collections.Generic;
3
-using System.Linq;
4
-using System.Threading.Tasks;
5
-using Microsoft.AspNet.Http;
6
using Microsoft.AspNet.Mvc;
7
8
namespace MusicStore.Controllers
@@ -11,12 +6,7 @@ public class HomeController : Controller
11
{
12
public IActionResult Index()
13
14
- var url = Request.Path.Value;
15
- if (url.EndsWith(".ico") || url.EndsWith(".map")) {
16
- return new HttpStatusCodeResult(404);
17
- } else {
18
- return View();
19
- }
9
+ return View();
20
10
}
21
22
public IActionResult Error()
0 commit comments