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

udpate netlify functions

parent 012ae05a
No related branches found
No related tags found
No related merge requests found
exports.handler = (ev, ctx, cb) => {
const {
path,
httpMethod,
headers,
queryStringParameters,
body,
isBase64Encoded,
} = ev
const templates = [
// 'infant',
'bigbrain',
'colin',
'MNI152',
'waxholmRatV2_0',
'allenMouse'
]
const resp = {
hello: 'world'
templates,
ev
}
cb(null, {
status: 400,
body: JSON.stringify(resp),
......
exports.handler = (ev, ctx, cb) => {
const resp = {
foo: 'bar'
}
cb(null, {
status: 400,
body: JSON.stringify(resp),
headers: {
'Content-type': 'application/json'
}
})
}
\ No newline at end of file
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