summaryrefslogtreecommitdiff
path: root/Services/RobotsTxtGenerator.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-06-15 07:32:35 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-06-15 07:32:35 +0300
commitecf537fdca168b2acf3b0ee6fae1f5a2c78aafee (patch)
treeeb52b03b9c2aea1434e8d819c627a11dc62ccb84 /Services/RobotsTxtGenerator.cs
parent3655495dfdb1c0024eafa4efe3d6ab745e087af0 (diff)
Move robots.txt to Razor Pages
Diffstat (limited to 'Services/RobotsTxtGenerator.cs')
-rw-r--r--Services/RobotsTxtGenerator.cs17
1 files changed, 0 insertions, 17 deletions
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();
- }
-}