remove auth with url

This commit is contained in:
Matteo Pagliazzi
2018-08-15 10:40:25 +02:00
parent 2a7dfff88a
commit 696121fb24
7 changed files with 16 additions and 44 deletions

View File

@@ -1,7 +1,6 @@
import shared from '../../../../common';
import {
authWithHeaders,
authWithUrl,
} from '../../../middlewares/auth';
import stripePayments from '../../../libs/payments/stripe';
@@ -74,7 +73,7 @@ api.subscribeEdit = {
api.subscribeCancel = {
method: 'GET',
url: '/stripe/subscribe/cancel',
middlewares: [authWithUrl],
middlewares: [authWithHeaders()],
async handler (req, res) {
let user = res.locals.user;
let groupId = req.query.groupId;