mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Slight simplification
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user