From ecf537fdca168b2acf3b0ee6fae1f5a2c78aafee Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Thu, 15 Jun 2023 07:32:35 +0300 Subject: Move robots.txt to Razor Pages --- Services/RobotsTxtGenerator.cs | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 Services/RobotsTxtGenerator.cs (limited to 'Services/RobotsTxtGenerator.cs') diff --git a/Services/RobotsTxtGenerator.cs b/Services/RobotsTxtGenerator.cs deleted file mode 100644 index 26e5cee..0000000 --- a/Services/RobotsTxtGenerator.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System.Text; - -namespace MyDarling.Services; - -public class RobotsTxtGenerator : IRobotsTxtGenerator -{ - public string GetRobotsText() - { - StringBuilder stringBuilder = new(); - stringBuilder.AppendLine("user-agent: *"); - stringBuilder.AppendLine("Disallow: /freedom"); - stringBuilder.AppendLine("Disallow: /Account/"); - stringBuilder.AppendLine("Disallow: /account/"); - - return stringBuilder.ToString(); - } -} -- cgit v1.2.3