diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2022-08-10 00:44:21 +0200 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2022-08-10 00:46:35 +0200 |
| commit | 223e74569aa3355857ee37f84b0eac2a8dd24b3d (patch) | |
| tree | 8286221b82d176b84fb82b931bb5831c1a723ec5 /src/invidious.cr | |
| parent | 0a4d793556e89e48b1a4caceaf8b8730b4b69d73 (diff) | |
| download | invidious-223e74569aa3355857ee37f84b0eac2a8dd24b3d.tar.gz invidious-223e74569aa3355857ee37f84b0eac2a8dd24b3d.tar.bz2 invidious-223e74569aa3355857ee37f84b0eac2a8dd24b3d.zip | |
routing: move feed routes registration to Invidious::Routing
Diffstat (limited to 'src/invidious.cr')
| -rw-r--r-- | src/invidious.cr | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index e880db19..4a3b28b1 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -346,19 +346,7 @@ end # User routes Invidious::Routing.register_user_routes - # Feeds - Invidious::Routing.get "/view_all_playlists", Invidious::Routes::Feeds, :view_all_playlists_redirect - Invidious::Routing.get "/feed/playlists", Invidious::Routes::Feeds, :playlists - Invidious::Routing.get "/feed/popular", Invidious::Routes::Feeds, :popular - Invidious::Routing.get "/feed/trending", Invidious::Routes::Feeds, :trending - Invidious::Routing.get "/feed/subscriptions", Invidious::Routes::Feeds, :subscriptions - Invidious::Routing.get "/feed/history", Invidious::Routes::Feeds, :history - - # RSS Feeds - Invidious::Routing.get "/feed/channel/:ucid", Invidious::Routes::Feeds, :rss_channel - Invidious::Routing.get "/feed/private", Invidious::Routes::Feeds, :rss_private - Invidious::Routing.get "/feed/playlist/:plid", Invidious::Routes::Feeds, :rss_playlist - Invidious::Routing.get "/feeds/videos.xml", Invidious::Routes::Feeds, :rss_videos + Invidious::Routing.register_feed_routes # Support push notifications via PubSubHubbub Invidious::Routing.get "/feed/webhook/:token", Invidious::Routes::Feeds, :push_notifications_get |
