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

fix cb signature

parent af7e7ba8
No related branches found
No related tags found
No related merge requests found
......@@ -18,14 +18,14 @@ exports.handler = (ev, ctx, cb) => {
const [ _, templateName, parcellationName ] = re
if (CACHED_DATASET_URL) {
cb(null, {
status: 302,
statusCode: 302,
headers: {
'Location': CACHED_DATASET_URL
}
})
} else {
return cb(null, {
status: 200,
statusCode: 200,
body: '[]',
headers: {
'content-type': 'application/json'
......
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