mirror of
https://github.com/yawaflua/yaflay.ru.git
synced 2025-12-09 20:19:32 +02:00
delete oembed and fix robots.txt
This commit is contained in:
@@ -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.Новая_папка
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user