diff --git a/appinfo/routes.php b/appinfo/routes.php index 24d5750238339b2056d5e83ee6beb412901dc463..761120a88011a120e8c3f65063a2d6e21b4865a1 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 1fbb375957e35d7ae47b9d785a8f4c5ca4a8959b..e798e33c588d2e5a6d4f6953833d56a42e6285a2 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) {