From 0356a6cfd78c683b37ff7bf1973d51c929c033fd Mon Sep 17 00:00:00 2001 From: Adam Wegrzynek Date: Thu, 7 Oct 2021 16:02:30 +0200 Subject: [PATCH] Make /logs, /flps and /attachment routes private again (#419) --- lib/server/routers/attachments.router.js | 2 +- lib/server/routers/flps.router.js | 2 +- lib/server/routers/logs.router.js | 2 +- package-lock.json | 2 +- package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/server/routers/attachments.router.js b/lib/server/routers/attachments.router.js index 64195a3ece..d2de0e2dbf 100644 --- a/lib/server/routers/attachments.router.js +++ b/lib/server/routers/attachments.router.js @@ -18,7 +18,7 @@ module.exports = { method: 'post', path: 'attachments', controller: [attachmentMiddleware, AttachmentsController.createAttachment], - args: { public: true }, + args: { public: false }, children: [ { method: 'get', diff --git a/lib/server/routers/flps.router.js b/lib/server/routers/flps.router.js index 3a54f876ba..be4a01e9b1 100644 --- a/lib/server/routers/flps.router.js +++ b/lib/server/routers/flps.router.js @@ -17,7 +17,7 @@ module.exports = { method: 'get', path: '/flps', controller: FlpsController.listFlps, - args: { public: true }, + args: { public: false }, children: [ { method: 'get', diff --git a/lib/server/routers/logs.router.js b/lib/server/routers/logs.router.js index de07625ad1..8429feb914 100644 --- a/lib/server/routers/logs.router.js +++ b/lib/server/routers/logs.router.js @@ -18,7 +18,7 @@ module.exports = { method: 'get', path: '/logs', controller: LogsController.listLogs, - args: { public: true }, + args: { public: false }, children: [ { method: 'post', diff --git a/package-lock.json b/package-lock.json index cce6445543..2153755aaa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@aliceo2/bookkeeping", - "version": "0.17.9", + "version": "0.17.10", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 2c4b54d7a2..b0d52f945d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aliceo2/bookkeeping", - "version": "0.17.9", + "version": "0.17.10", "author": "CERN", "license": "GPL-3.0", "scripts": {