File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
aws-node-serve-dynamic-html Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Serving Dynamic HTML via API Gateway Example
2
2
3
- These examples illustrate how to hookup an API Gateway endpoint to a Lambda function to render HTML on a ` GET ` request.
3
+ This example illustrates how to hookup an API Gateway endpoint to a Lambda function to render HTML on a ` GET ` request.
4
4
5
- Instead of returning the default ` json ` from requests to an endpoint , you can display custom dynamic HTML by setting the ` Content-Type ` header.
5
+ Instead of returning the default ` json ` from a request , you can display custom dynamic HTML by setting the ` Content-Type ` header to ` text/html ` .
6
6
7
7
``` js
8
8
const response = {
@@ -18,5 +18,5 @@ callback(null, response);
18
18
19
19
## Use-cases
20
20
21
- - landing pages for marketing activities
22
- - dynamic single use webpages
21
+ - Landing pages for marketing activities
22
+ - Single use dynamic webpages
You can’t perform that action at this time.
0 commit comments