kopia lustrzana https://github.com/iv-org/invidious
routing: move search routes registration to Invidious::Routing
rodzic
5503914abe
commit
0a4d793556
|
@ -341,10 +341,7 @@ end
|
||||||
Invidious::Routing.register_iv_playlist_routes
|
Invidious::Routing.register_iv_playlist_routes
|
||||||
Invidious::Routing.register_yt_playlist_routes
|
Invidious::Routing.register_yt_playlist_routes
|
||||||
|
|
||||||
Invidious::Routing.get "/opensearch.xml", Invidious::Routes::Search, :opensearch
|
Invidious::Routing.register_search_routes
|
||||||
Invidious::Routing.get "/results", Invidious::Routes::Search, :results
|
|
||||||
Invidious::Routing.get "/search", Invidious::Routes::Search, :search
|
|
||||||
Invidious::Routing.get "/hashtag/:hashtag", Invidious::Routes::Search, :hashtag
|
|
||||||
|
|
||||||
# User routes
|
# User routes
|
||||||
Invidious::Routing.register_user_routes
|
Invidious::Routing.register_user_routes
|
||||||
|
|
|
@ -105,6 +105,17 @@ module Invidious::Routing
|
||||||
get "/watch_videos", Routes::Playlists, :watch_videos
|
get "/watch_videos", Routes::Playlists, :watch_videos
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def register_search_routes
|
||||||
|
get "/opensearch.xml", Routes::Search, :opensearch
|
||||||
|
get "/results", Routes::Search, :results
|
||||||
|
get "/search", Routes::Search, :search
|
||||||
|
get "/hashtag/:hashtag", Routes::Search, :hashtag
|
||||||
|
end
|
||||||
|
|
||||||
|
# -------------------
|
||||||
|
# Media proxy routes
|
||||||
|
# -------------------
|
||||||
|
|
||||||
def register_api_manifest_routes
|
def register_api_manifest_routes
|
||||||
get "/api/manifest/dash/id/:id", Routes::API::Manifest, :get_dash_video_id
|
get "/api/manifest/dash/id/:id", Routes::API::Manifest, :get_dash_video_id
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue