mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
remove auth with url
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user