summaryrefslogtreecommitdiff
path: root/Services
diff options
context:
space:
mode:
Diffstat (limited to 'Services')
-rw-r--r--Services/IRobotsTxtGenerator.cs6
-rw-r--r--Services/RobotsTxtGenerator.cs17
2 files changed, 0 insertions, 23 deletions
diff --git a/Services/IRobotsTxtGenerator.cs b/Services/IRobotsTxtGenerator.cs
deleted file mode 100644
index 6f49924..0000000
--- a/Services/IRobotsTxtGenerator.cs
+++ /dev/null
@@ -1,6 +0,0 @@
-namespace MyDarling.Services;
-
-public interface IRobotsTxtGenerator
-{
- public string GetRobotsText();
-}
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();
- }
-}