diff --git a/functions/datasets/datasets.js b/functions/datasets/datasets.js index c2fc5262d4107d18b4119e10f895de23e48cbdb2..e4c4b522ba9c710ab3830dbfa3ac9689d688b3fd 100644 --- a/functions/datasets/datasets.js +++ b/functions/datasets/datasets.js @@ -10,7 +10,7 @@ exports.handler = (ev, ctx, cb) => { } = ev - const re = /datasets\/templateNameParcellationName\/\/?(.+)\/(.*?)$/.exec(path) + const re = /datasets\/\/?templateNameParcellationName\/(.+)\/(.*?)$/.exec(path) if (!re) { return cb(null, { status: 401 }) }