Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update how-to-create-a-rest-api-with-serverless.md #668

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions _examples/how-to-create-a-rest-api-with-serverless.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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) => {
Expand Down Expand Up @@ -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 {
Expand Down