Skip to content

Commit 269b314

Browse files
Slight simplification
1 parent 39f7f16 commit 269b314

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

samples/angular/MusicStore/Controllers/HomeController.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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;
61
using Microsoft.AspNet.Mvc;
72

83
namespace MusicStore.Controllers
@@ -11,12 +6,7 @@ public class HomeController : Controller
116
{
127
public IActionResult Index()
138
{
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();
2010
}
2111

2212
public IActionResult Error()

0 commit comments

Comments
 (0)