mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +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;
|
||||
|
||||
namespace MusicStore.Controllers
|
||||
@@ -11,12 +6,7 @@ namespace MusicStore.Controllers
|
||||
{
|
||||
public IActionResult Index()
|
||||
{
|
||||
var url = Request.Path.Value;
|
||||
if (url.EndsWith(".ico") || url.EndsWith(".map")) {
|
||||
return new HttpStatusCodeResult(404);
|
||||
} else {
|
||||
return View();
|
||||
}
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult Error()
|
||||
|
||||
Reference in New Issue
Block a user