Move feed views into their own directory

This commit is contained in:
syeopite 2021-07-21 20:36:11 -07:00
parent 6e92541d1a
commit abca5c6829
No known key found for this signature in database
GPG Key ID: 6FA616E5A5294A82
6 changed files with 5 additions and 5 deletions

View File

@ -25,14 +25,14 @@ module Invidious::Routes::Feeds
item
end
templated "view_all_playlists"
templated "feeds/playlists"
end
def self.popular(env)
locale = LOCALES[env.get("preferences").as(Preferences).locale]?
if CONFIG.popular_enabled
templated "popular"
templated "feeds/popular"
else
message = translate(locale, "The Popular feed has been disabled by the administrator.")
templated "message"
@ -54,7 +54,7 @@ module Invidious::Routes::Feeds
return error_template(500, ex)
end
templated "trending"
templated "feeds/trending"
end
def self.subscriptions(env)
@ -102,7 +102,7 @@ module Invidious::Routes::Feeds
user.notifications = [] of String
env.set "user", user
templated "subscriptions"
templated "feeds/subscriptions"
end
def self.history(env)
@ -129,7 +129,7 @@ module Invidious::Routes::Feeds
end
watched ||= [] of String
templated "history"
templated "feeds/history"
end
# RSS feeds