Invidious is an alternative front-end to YouTube
Move user pages (ECR files) to subfolder
Samantaz Fox99d770be643d
diff --git a/src/invidious/routes/account.cr b/src/invidious/routes/account.crindex 2be0de37..9bb73136 100644--- a/src/invidious/routes/account.cr+++ b/src/invidious/routes/account.cr@@ -23,7 +23,7 @@ module Invidious::Routes::Accountsid = sid.as(String)csrf_token = generate_response(sid, {":change_password"}, HMAC_KEY)- templated "change_password"+ templated "user/change_password"end# Handle the password change (POST request)@@ -103,7 +103,7 @@ module Invidious::Routes::Accountsid = sid.as(String)csrf_token = generate_response(sid, {":delete_account"}, HMAC_KEY)- templated "delete_account"+ templated "user/delete_account"end# Handle the account deletion (POST request)@@ -161,7 +161,7 @@ module Invidious::Routes::Accountsid = sid.as(String)csrf_token = generate_response(sid, {":clear_watch_history"}, HMAC_KEY)- templated "clear_watch_history"+ templated "user/clear_watch_history"end# Handle the watch history clearing (POST request)@@ -220,7 +220,7 @@ module Invidious::Routes::Accountexpire = env.params.query["expire"]?.try &.to_i?- templated "authorize_token"+ templated "user/authorize_token"end# Handle token authorization (POST request)@@ -268,7 +268,7 @@ module Invidious::Routes::Accountelsecsrf_token = ""env.set "access_token", access_token- templated "authorize_token"+ templated "user/authorize_token"endend@@ -291,7 +291,7 @@ module Invidious::Routes::Accountuser = user.as(User)tokens = Invidious::Database::SessionIDs.select_all(user.email)- templated "token_manager"+ templated "user/token_manager"end# -------------------diff --git a/src/invidious/routes/api/v1/authenticated.cr b/src/invidious/routes/api/v1/authenticated.crindex 4e9fc801..c27853ca 100644--- a/src/invidious/routes/api/v1/authenticated.cr+++ b/src/invidious/routes/api/v1/authenticated.cr@@ -343,7 +343,7 @@ module Invidious::Routes::API::V1::Authenticatedenv.response.content_type = "text/html"csrf_token = generate_response(sid, {":authorize_token"}, HMAC_KEY, use_nonce: true)- return templated "authorize_token"+ return templated "user/authorize_token"elseenv.response.content_type = "application/json"diff --git a/src/invidious/routes/login.cr b/src/invidious/routes/login.crindex 8767ec22..65b337d1 100644--- a/src/invidious/routes/login.cr+++ b/src/invidious/routes/login.cr@@ -27,7 +27,7 @@ module Invidious::Routes::Logintfa = env.params.query["tfa"]?prompt = nil- templated "login"+ templated "user/login"enddef self.login(env)@@ -133,7 +133,7 @@ module Invidious::Routes::Logintfa = tfa_codecaptcha = {tokens: [token], question: ""}- return templated "login"+ return templated "user/login"endif challenge_results[0][-1]?.try &.[5] == "INCORRECT_ANSWER_ENTERED"@@ -190,7 +190,7 @@ module Invidious::Routes::Logintfa = nilcaptcha = nil- return templated "login"+ return templated "user/login"endtl = challenge_results[1][2]@@ -376,7 +376,7 @@ module Invidious::Routes::Logincaptcha = Invidious::User::Captcha.generate_text(HMAC_KEY)end- return templated "login"+ return templated "user/login"endtokens = env.params.body.select { |k, _| k.match(/^token\[\d+\]$/) }.map { |_, v| v }diff --git a/src/invidious/routes/preferences.cr b/src/invidious/routes/preferences.crindex 294932eb..68d61fd1 100644--- a/src/invidious/routes/preferences.cr+++ b/src/invidious/routes/preferences.cr@@ -8,7 +8,7 @@ module Invidious::Routes::PreferencesRoutepreferences = env.get("preferences").as(Preferences)- templated "preferences"+ templated "user/preferences"enddef self.update(env)@@ -272,7 +272,7 @@ module Invidious::Routes::PreferencesRouteuser = user.as(User)- templated "data_control"+ templated "user/data_control"enddef self.update_data_control(env)diff --git a/src/invidious/routes/subscriptions.cr b/src/invidious/routes/subscriptions.crindex ec8fe67b..7b1fa876 100644--- a/src/invidious/routes/subscriptions.cr+++ b/src/invidious/routes/subscriptions.cr@@ -163,6 +163,6 @@ module Invidious::Routes::Subscriptionsendend- templated "subscription_manager"+ templated "user/subscription_manager"endenddiff --git a/src/invidious/views/authorize_token.ecr b/src/invidious/views/user/authorize_token.ecrsimilarity index 100%rename from src/invidious/views/authorize_token.ecrrename to src/invidious/views/user/authorize_token.ecrdiff --git a/src/invidious/views/change_password.ecr b/src/invidious/views/user/change_password.ecrsimilarity index 100%rename from src/invidious/views/change_password.ecrrename to src/invidious/views/user/change_password.ecrdiff --git a/src/invidious/views/clear_watch_history.ecr b/src/invidious/views/user/clear_watch_history.ecrsimilarity index 100%rename from src/invidious/views/clear_watch_history.ecrrename to src/invidious/views/user/clear_watch_history.ecrdiff --git a/src/invidious/views/data_control.ecr b/src/invidious/views/user/data_control.ecrsimilarity index 100%rename from src/invidious/views/data_control.ecrrename to src/invidious/views/user/data_control.ecrdiff --git a/src/invidious/views/delete_account.ecr b/src/invidious/views/user/delete_account.ecrsimilarity index 100%rename from src/invidious/views/delete_account.ecrrename to src/invidious/views/user/delete_account.ecrdiff --git a/src/invidious/views/login.ecr b/src/invidious/views/user/login.ecrsimilarity index 100%rename from src/invidious/views/login.ecrrename to src/invidious/views/user/login.ecrdiff --git a/src/invidious/views/preferences.ecr b/src/invidious/views/user/preferences.ecrsimilarity index 100%rename from src/invidious/views/preferences.ecrrename to src/invidious/views/user/preferences.ecrdiff --git a/src/invidious/views/subscription_manager.ecr b/src/invidious/views/user/subscription_manager.ecrsimilarity index 100%rename from src/invidious/views/subscription_manager.ecrrename to src/invidious/views/user/subscription_manager.ecrdiff --git a/src/invidious/views/token_manager.ecr b/src/invidious/views/user/token_manager.ecrsimilarity index 100%rename from src/invidious/views/token_manager.ecrrename to src/invidious/views/user/token_manager.ecr