Skip to content
Snippets Groups Projects
Commit af7e7ba8 authored by Xiao Gui's avatar Xiao Gui
Browse files

fix netlify fn redirect

parent 3b5d034d
No related branches found
No related tags found
......@@ -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 })
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment