Skip to content

Commit a16c2f4

Browse files
authored
Add syntax highlighting for code in README
1 parent 79a0f57 commit a16c2f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $ yarn add alpr
2828

2929
Lambda index handler:
3030

31-
```
31+
```javascript
3232
import Alpr from 'alpr';
3333

3434
function handler(event, context, callback) {
@@ -132,7 +132,7 @@ The response parameter is used to send a response back to API gateway. This meth
132132
| params.isBase64Encoded | boolean | This is usually used for serving binary data from an API. | false
133133

134134
Here is the recommended way to call the response method.
135-
```
135+
```javascript
136136
response({
137137
statusCode: 200,
138138
headers: { "x-your-header": "header value" },
@@ -145,7 +145,7 @@ More information about the proxy response object can be found on the [AWS docume
145145
If any of the correct parameters are not specified, default values of empty headers, statusCode 200, and a stringified value of whatever was sent in the parameter for the body are used to make the response valid.
146146

147147
So `response('hello world')` would work out as:
148-
```
148+
```javascript
149149
{
150150
statusCode: 200,
151151
headers: {},

0 commit comments

Comments
 (0)