From 6c2b6e4ee5e722098d54942170512c347d13d326 Mon Sep 17 00:00:00 2001 From: hermano360 Date: Mon, 16 May 2022 09:11:09 -0700 Subject: [PATCH] Update how-to-create-a-rest-api-with-serverless.md updating rest of "./notes" references since each of the files are in backend/functions directory and notes are in backend directory --- _examples/how-to-create-a-rest-api-with-serverless.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_examples/how-to-create-a-rest-api-with-serverless.md b/_examples/how-to-create-a-rest-api-with-serverless.md index 7929faef8..e74cd50c2 100644 --- a/_examples/how-to-create-a-rest-api-with-serverless.md +++ b/_examples/how-to-create-a-rest-api-with-serverless.md @@ -137,7 +137,7 @@ Note that this function need to be `async` to be invoked by AWS Lambda. Even tho {%change%} Add the following to `backend/functions/get.ts`. ```ts -import notes from "./notes"; +import notes from "../notes"; import { APIGatewayProxyHandlerV2 } from "aws-lambda"; export const handler: APIGatewayProxyHandlerV2 = async (event) => { @@ -161,7 +161,7 @@ Here we are checking if we have the requested note. If we do, we respond with it {%change%} Add the following to `backend/functions/update.ts`. ```ts -import notes from "./notes"; +import notes from "../notes"; import { APIGatewayProxyHandlerV2 } from "aws-lambda"; export const handler: APIGatewayProxyHandlerV2 = async (event) => { @@ -261,7 +261,7 @@ Let's make a quick change to our API. It would be good if the JSON strings are p {%change%} Replace `backend/functions/list.ts` with the following. ```ts -import notes from "./notes"; +import notes from "../notes"; export async function handler() { return {