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

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