diff --git a/README.md b/README.md index 71a5ba0..10d8608 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,15 @@ function handler(event, context, callback) { }); }, }); + + if (!alpr.routeMatched) { + // request resource did not match a route + callback({ + statusCode: 404, + headers: {}, + body: { message: "Route not found" } + }); + } } export { handler };