mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
start removing inbox from some routes (#10259)
This commit is contained in:
@@ -21,7 +21,9 @@ let api = {};
|
||||
api.addPushDevice = {
|
||||
method: 'POST',
|
||||
url: '/user/push-devices',
|
||||
middlewares: [authWithHeaders()],
|
||||
middlewares: [authWithHeaders({
|
||||
userFieldsToExclude: ['inbox'],
|
||||
})],
|
||||
async handler (req, res) {
|
||||
let user = res.locals.user;
|
||||
|
||||
@@ -64,7 +66,9 @@ api.addPushDevice = {
|
||||
api.removePushDevice = {
|
||||
method: 'DELETE',
|
||||
url: '/user/push-devices/:regId',
|
||||
middlewares: [authWithHeaders()],
|
||||
middlewares: [authWithHeaders({
|
||||
userFieldsToExclude: ['inbox'],
|
||||
})],
|
||||
async handler (req, res) {
|
||||
let user = res.locals.user;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user