From cef1894791843190b36cc61c3b8e2d5d3ac89bfd Mon Sep 17 00:00:00 2001 From: Donovan Daniels Date: Tue, 23 Jul 2024 12:38:32 -0500 Subject: [PATCH] Add yiff.rest /support route --- app/views/furry_cool/home/index.html.erb | 2 +- app/views/yiff_media/home/index.html.erb | 2 +- config/default_config.rb | 8 ++++++++ config/routes/yiff_rest_routes.rb | 1 + 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/views/furry_cool/home/index.html.erb b/app/views/furry_cool/home/index.html.erb index 211f7fe..7169407 100644 --- a/app/views/furry_cool/home/index.html.erb +++ b/app/views/furry_cool/home/index.html.erb @@ -36,7 +36,7 @@ | Discord Bot
- Discord Server + Discord Server | Discord Bot Library | diff --git a/app/views/yiff_media/home/index.html.erb b/app/views/yiff_media/home/index.html.erb index b3737c6..e70b271 100644 --- a/app/views/yiff_media/home/index.html.erb +++ b/app/views/yiff_media/home/index.html.erb @@ -39,7 +39,7 @@
Twitter
Discord Bot
- Discord Server
+ Personal Discord Server
Yiffy API
diff --git a/config/default_config.rb b/config/default_config.rb index 0c419d5..c4410ef 100644 --- a/config/default_config.rb +++ b/config/default_config.rb @@ -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 diff --git a/config/routes/yiff_rest_routes.rb b/config/routes/yiff_rest_routes.rb index c873280..218e357 100644 --- a/config/routes/yiff_rest_routes.rb +++ b/config/routes/yiff_rest_routes.rb @@ -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