|
|
|
@ -312,6 +312,7 @@ before_all do |env|
|
|
|
|
|
env.set "current_page", URI.encode_www_form(current_page)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
{% unless flag?(:api_only) %}
|
|
|
|
|
Invidious::Routing.get "/", Invidious::Routes::Misc, :home
|
|
|
|
|
Invidious::Routing.get "/privacy", Invidious::Routes::Misc, :privacy
|
|
|
|
|
Invidious::Routing.get "/licenses", Invidious::Routes::Misc, :licenses
|
|
|
|
@ -386,6 +387,7 @@ Invidious::Routing.get "/feeds/videos.xml", Invidious::Routes::Feeds, :rss_video
|
|
|
|
|
# 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
|
|
|
|
|
{% end %}
|
|
|
|
|
|
|
|
|
|
# API routes (macro)
|
|
|
|
|
define_v1_api_routes()
|
|
|
|
|