From e043a9ea114bf458163be9395b72c9ba16942a1c Mon Sep 17 00:00:00 2001 From: jocloud Date: Tue, 26 May 2020 07:38:59 +0000 Subject: [PATCH] =?utf8?q?=EC=9D=AD=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ZipProject/Controllers/WebZipController.cs | 16 ---------------- ZipProject/Views/Shared/_Layout.cshtml | 1 + 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/ZipProject/Controllers/WebZipController.cs b/ZipProject/Controllers/WebZipController.cs index 9ba1a8b..9b2ff8e 100644 --- a/ZipProject/Controllers/WebZipController.cs +++ b/ZipProject/Controllers/WebZipController.cs @@ -171,22 +171,6 @@ namespace ZipProject.Controllers return File(file, content_type, "robots.txt"); } - [HttpGet("/favicon.ico")] - public IActionResult Favicon() - { - string path; - string content_type= "Multipart/related"; - -#if !DEBUG - path = Environment.CurrentDirectory + "/release/netcoreapp2.1/publish/wwwroot/favicon.ico"; -#else - path = Environment.CurrentDirectory + "/wwwroot/robots.txt"; -#endif - - byte[] file = System.IO.File.ReadAllBytes(path); - return File(file, content_type, "favicon.ico"); - } - } } \ No newline at end of file diff --git a/ZipProject/Views/Shared/_Layout.cshtml b/ZipProject/Views/Shared/_Layout.cshtml index 7bd7756..e7b92fe 100644 --- a/ZipProject/Views/Shared/_Layout.cshtml +++ b/ZipProject/Views/Shared/_Layout.cshtml @@ -13,6 +13,7 @@ + @ViewData["Title"] -- 2.43.0