mirror of
https://github.com/iv-org/invidious.git
synced 2025-11-22 09:25:32 +00:00
Move live endpoints into Channels route
This commit is contained in:
@@ -324,6 +324,9 @@ end
|
||||
Invidious::Routing.get "/channel/:ucid/playlists", Invidious::Routes::Channels, :playlists
|
||||
Invidious::Routing.get "/channel/:ucid/community", Invidious::Routes::Channels, :community
|
||||
Invidious::Routing.get "/channel/:ucid/about", Invidious::Routes::Channels, :about
|
||||
Invidious::Routing.get "/channel/:ucid/live", Invidious::Routes::Channels, :live
|
||||
Invidious::Routing.get "/user/:user/live", Invidious::Routes::Channels, :live
|
||||
Invidious::Routing.get "/c/:user/live", Invidious::Routes::Channels, :live
|
||||
|
||||
["", "/videos", "/playlists", "/community", "/about"].each do |path|
|
||||
# /c/LinusTechTips
|
||||
@@ -400,10 +403,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 "/channel/:ucid/live", Invidious::Routes::Live, :check
|
||||
Invidious::Routing.get "/user/:user/live", Invidious::Routes::Live, :check
|
||||
Invidious::Routing.get "/c/:user/live", Invidious::Routes::Live, :check
|
||||
|
||||
# API routes (macro)
|
||||
define_v1_api_routes()
|
||||
Invidious::Routing.get "/api/v1/auth/notifications", Invidious::Routes::API::V1::Authenticated, :notifications_get
|
||||
|
||||
Reference in New Issue
Block a user