Slight simplification
This commit is contained in:
parent
39f7f1649f
commit
269b31469c
|
|
@ -1,8 +1,3 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.AspNet.Http;
|
|
||||||
using Microsoft.AspNet.Mvc;
|
using Microsoft.AspNet.Mvc;
|
||||||
|
|
||||||
namespace MusicStore.Controllers
|
namespace MusicStore.Controllers
|
||||||
|
|
@ -11,12 +6,7 @@ namespace MusicStore.Controllers
|
||||||
{
|
{
|
||||||
public IActionResult Index()
|
public IActionResult Index()
|
||||||
{
|
{
|
||||||
var url = Request.Path.Value;
|
return View();
|
||||||
if (url.EndsWith(".ico") || url.EndsWith(".map")) {
|
|
||||||
return new HttpStatusCodeResult(404);
|
|
||||||
} else {
|
|
||||||
return View();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public IActionResult Error()
|
public IActionResult Error()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue