From f38947490410b92d9de4cb4c435b4fdd3986b50f Mon Sep 17 00:00:00 2001 From: Ronak Date: Tue, 16 May 2023 02:01:35 -0700 Subject: [PATCH 1/2] change in route --- appinfo/routes.php | 4 ++-- src/BecomeBetaUser.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/appinfo/routes.php b/appinfo/routes.php index 24d57502..761120a8 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -16,11 +16,11 @@ return ['routes' => [ ], [ 'name' => 'beta_user#remove_user_in_group', - 'url' => '/beta/remove', 'verb' => 'GET' + 'url' => '/beta/remove', 'verb' => 'DELETE' ], [ 'name' => 'beta_user#add_user_in_group', - 'url' => '/beta/add', 'verb' => 'GET' + 'url' => '/beta/add', 'verb' => 'POST' ], [ 'name' => 'beta_user#submit_issue', diff --git a/src/BecomeBetaUser.vue b/src/BecomeBetaUser.vue index 1fbb3759..4e0e9f64 100644 --- a/src/BecomeBetaUser.vue +++ b/src/BecomeBetaUser.vue @@ -128,7 +128,7 @@ export default { const url = generateUrl( `/apps/${this.appName}/beta/add` ) - await Axios.get(url) + await Axios.post(url,{}) this.isBetaUser = true showSuccess(t(this.appName, 'Congratulations! You\'ve successfully been added to the beta users.')) } catch (e) { @@ -140,7 +140,7 @@ export default { const url = generateUrl( `/apps/${this.appName}/beta/remove` ) - await Axios.get(url) + await Axios.delete(url) this.isBetaUser = false showSuccess(t(this.appName, 'You no longer have access to experimental features.')) } catch (e) { -- GitLab From 5cbe75f5bb72418c6f467326b0b92e08f985ffae Mon Sep 17 00:00:00 2001 From: Ronak Date: Tue, 16 May 2023 02:03:14 -0700 Subject: [PATCH 2/2] lint --- src/BecomeBetaUser.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BecomeBetaUser.vue b/src/BecomeBetaUser.vue index 4e0e9f64..e798e33c 100644 --- a/src/BecomeBetaUser.vue +++ b/src/BecomeBetaUser.vue @@ -128,7 +128,7 @@ export default { const url = generateUrl( `/apps/${this.appName}/beta/add` ) - await Axios.post(url,{}) + await Axios.post(url, {}) this.isBetaUser = true showSuccess(t(this.appName, 'Congratulations! You\'ve successfully been added to the beta users.')) } catch (e) { -- GitLab