diff --git a/app/controllers/web/my-account/list-logs.js b/app/controllers/web/my-account/list-logs.js index 04839f9488..ab5a72afc4 100644 --- a/app/controllers/web/my-account/list-logs.js +++ b/app/controllers/web/my-account/list-logs.js @@ -326,7 +326,7 @@ async function listLogs(ctx) { ctx.pathWithoutLocale === '/my-account/logs/download' || (ctx.api && ctx.pathWithoutLocale === '/v1/logs/download' && - ctx.method === 'POST') + ctx.method === 'GET') ) { // download in background and email to users const now = new Date(); diff --git a/routes/api/v1/index.js b/routes/api/v1/index.js index ba712dba34..9caa154fd3 100644 --- a/routes/api/v1/index.js +++ b/routes/api/v1/index.js @@ -85,7 +85,7 @@ router ); // logs -router.post( +router.get( '/logs/download', policies.ensureApiToken, policies.checkVerifiedEmail,