diff --git a/functions/todos-read-one.js b/functions/todos-read.js similarity index 97% rename from functions/todos-read-one.js rename to functions/todos-read.js index 5eadbb6..76ecf5e 100644 --- a/functions/todos-read-one.js +++ b/functions/todos-read.js @@ -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) => {