From 8ef1e81294a3426009e705a61a69ef91e1e8f7c2 Mon Sep 17 00:00:00 2001 From: matthewmcgarvey Date: Tue, 18 Jan 2022 18:34:32 -0600 Subject: [PATCH] Make certain routes ignored if api only --- src/invidious.cr | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index 0a3bad8b..01cfcae3 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -393,6 +393,11 @@ end # Support push notifications via PubSubHubbub Invidious::Routing.get "/feed/webhook/:token", Invidious::Routes::Feeds, :push_notifications_get Invidious::Routing.post "/feed/webhook/:token", Invidious::Routes::Feeds, :push_notifications_post + + Invidious::Routing.get "/modify_notifications", Invidious::Routes::Notifications, :modify + + Invidious::Routing.post "/subscription_ajax", Invidious::Routes::Subscriptions, :toggle_subscription + Invidious::Routing.get "/subscription_manager", Invidious::Routes::Subscriptions, :subscription_manager {% end %} Invidious::Routing.get "/ggpht/*", Invidious::Routes::Images, :ggpht @@ -402,11 +407,6 @@ Invidious::Routing.get "/s_p/:id/:name", Invidious::Routes::Images, :s_p_image Invidious::Routing.get "/yts/img/:name", Invidious::Routes::Images, :yts_image Invidious::Routing.get "/vi/:id/:name", Invidious::Routes::Images, :thumbnails -Invidious::Routing.get "/modify_notifications", Invidious::Routes::Notifications, :modify - -Invidious::Routing.post "/subscription_ajax", Invidious::Routes::Subscriptions, :toggle_subscription -Invidious::Routing.get "/subscription_manager", Invidious::Routes::Subscriptions, :subscription_manager - # API routes (macro) define_v1_api_routes()