delete oembed and fix robots.txt

This commit is contained in:
Дмитрий Шиманский
2023-10-22 13:13:17 +03:00
parent b3b570f56e
commit ebc91f07da
3 changed files with 2 additions and 12 deletions

View File

@@ -1,14 +1,6 @@
using Microsoft.AspNetCore.Hosting.StaticWebAssets;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Net;
using System.Net.Http.Headers;
using System.Text;
using Microsoft.AspNetCore.Mvc;
using System.Text.Json;
using System.Text.Json.Nodes;
using HeyRed.OEmbed.Abstractions;
using HeyRed.OEmbed.Models;
using HeyRed.OEmbed;
namespace yaflay.ru.Новая_папка
{

View File

@@ -20,7 +20,7 @@ namespace yaflay.ru
services.AddMvc()
.AddRazorPagesOptions(options =>
{
options.Conventions.AddPageRoute("/robotstxt", "/Robots.Txt");
options.Conventions.AddPageRoute("/robots.txt", "/RobotsTxt");
});
//services.AddDirectoryBrowser();

View File

@@ -12,8 +12,6 @@
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.18.1" />
<PackageReference Include="OEmbed" Version="3.0.0" />
<PackageReference Include="OEmbed.Extensions.Microsoft.DependencyInjection" Version="3.0.0" />
</ItemGroup>
</Project>