Add yiff.rest /support route
This commit is contained in:
parent
671162f6a2
commit
cef1894791
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user