Add yiff.rest /support route

This commit is contained in:
Donovan Daniels 2024-07-23 12:38:32 -05:00
parent 671162f6a2
commit cef1894791
Signed by: Donovan_DMC
GPG Key ID: 907D29CBFD6157BA
4 changed files with 11 additions and 2 deletions

View File

@ -36,7 +36,7 @@
<span class="spacer">|</span>
<a href="https://maidboye.cafe">Discord Bot</a>
<br>
<a href="https://discord.gg/naPv33pBmh">Discord Server</a>
<a href="<%= Websites.config.personal_discord_invite %>">Discord Server</a>
<span class="spacer">|</span>
<a href="https://github.com/OceanicJS/Oceanic">Discord Bot Library</a>
<span class="spacer">|</span>

View File

@ -39,7 +39,7 @@
<br>
<a href="https://twitter.com/Donovan_DMC">Twitter</a><br>
<a href="https://maidboye.cafe">Discord Bot</a><br>
<a href="https://discord.gg/naPv33pBmh">Discord Server</a><br>
<a href="<%= Websites.config.personal_discord_invite %>">Personal Discord Server</a><br>
<a href="https://yiff.rest">Yiffy API</a><br>
</center>
</h2>

View File

@ -260,6 +260,14 @@ module Websites
StorageManager::Null.new
end
def yiffy2_discord_invite
"https://discord.gg/3CRwffZySz"
end
def personal_discord_invite
"https://discord.gg/naPv33pBmh"
end
def e621_username
end

View File

@ -29,6 +29,7 @@ module YiffRestRoutes
namespace(:home, path: "") do
get(:manifest, constraints: { format: "json" })
get(:browserconfig, constraints: { format: "xml" })
get(:support, to: redirect { Websites.config.yiffy2_discord_invite })
end
get("/v2/(*category)", action: :index, controller: "api_v2") # TODO: make routes case insensitive