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

init commit functions

parent ba7e0e2d
No related branches found
No related tags found
No related merge requests found
exports.handler = (ev, ctx, cb) => {
const resp = {
hello: 'world'
}
cb(null, {
status: 400,
body: JSON.stringify(resp),
headers: {
'Content-type': 'application/json'
}
})
}
\ No newline at end of file
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
......@@ -2,4 +2,8 @@
[build]
publish="dist/aot/"
command="npm run build-aot"
\ No newline at end of file
command="npm run build-aot"
functions=".netlify/functions/"
environment={
BACKEND_URL="netlify_functions"
}
\ 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