From 57f7cb28a5288ea280be793776998af94773f7fe Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Wed, 14 Jun 2023 08:03:29 +0300 Subject: Move RobotsTxtGenerator class to separate file --- Services/IRobotsTxtGenerator.cs | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'Services') diff --git a/Services/IRobotsTxtGenerator.cs b/Services/IRobotsTxtGenerator.cs index 22bc5a7..d989c8f 100644 --- a/Services/IRobotsTxtGenerator.cs +++ b/Services/IRobotsTxtGenerator.cs @@ -6,17 +6,3 @@ public interface IRobotsTxtGenerator { public string GetRobotsText(); } - -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