Add yiff.rest /support route
This commit is contained in:
parent
671162f6a2
commit
cef1894791
|
@ -36,7 +36,7 @@
|
||||||
<span class="spacer">|</span>
|
<span class="spacer">|</span>
|
||||||
<a href="https://maidboye.cafe">Discord Bot</a>
|
<a href="https://maidboye.cafe">Discord Bot</a>
|
||||||
<br>
|
<br>
|
||||||
<a href="https://discord.gg/naPv33pBmh">Discord Server</a>
|
<a href="<%= Websites.config.personal_discord_invite %>">Discord Server</a>
|
||||||
<span class="spacer">|</span>
|
<span class="spacer">|</span>
|
||||||
<a href="https://github.com/OceanicJS/Oceanic">Discord Bot Library</a>
|
<a href="https://github.com/OceanicJS/Oceanic">Discord Bot Library</a>
|
||||||
<span class="spacer">|</span>
|
<span class="spacer">|</span>
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
<br>
|
<br>
|
||||||
<a href="https://twitter.com/Donovan_DMC">Twitter</a><br>
|
<a href="https://twitter.com/Donovan_DMC">Twitter</a><br>
|
||||||
<a href="https://maidboye.cafe">Discord Bot</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>
|
<a href="https://yiff.rest">Yiffy API</a><br>
|
||||||
</center>
|
</center>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
|
@ -260,6 +260,14 @@ module Websites
|
||||||
StorageManager::Null.new
|
StorageManager::Null.new
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def yiffy2_discord_invite
|
||||||
|
"https://discord.gg/3CRwffZySz"
|
||||||
|
end
|
||||||
|
|
||||||
|
def personal_discord_invite
|
||||||
|
"https://discord.gg/naPv33pBmh"
|
||||||
|
end
|
||||||
|
|
||||||
def e621_username
|
def e621_username
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@ module YiffRestRoutes
|
||||||
namespace(:home, path: "") do
|
namespace(:home, path: "") do
|
||||||
get(:manifest, constraints: { format: "json" })
|
get(:manifest, constraints: { format: "json" })
|
||||||
get(:browserconfig, constraints: { format: "xml" })
|
get(:browserconfig, constraints: { format: "xml" })
|
||||||
|
get(:support, to: redirect { Websites.config.yiffy2_discord_invite })
|
||||||
end
|
end
|
||||||
|
|
||||||
get("/v2/(*category)", action: :index, controller: "api_v2") # TODO: make routes case insensitive
|
get("/v2/(*category)", action: :index, controller: "api_v2") # TODO: make routes case insensitive
|
||||||
|
|
Loading…
Reference in New Issue
Block a user