update function name
This commit is contained in:
parent
d4c3868e20
commit
943865b2c1
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ const client = new faunadb.Client({
|
|||
})
|
||||
|
||||
exports.handler = (event, context, callback) => {
|
||||
const id = event.path.replace(/\/\.netlify\/functions\/todos-read-one\//, "")
|
||||
const id = event.path.replace(/\/\.netlify\/functions\/todos-read\//, "")
|
||||
console.log(`readOne todo ${id}`)
|
||||
return client.query(q.Get(q.Ref(`classes/todos/${id}`)))
|
||||
.then((response) => {
|
||||
Loading…
Add table
Add a link
Reference in a new issue