mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
add skeleton for AWS lambda Node implementation
This commit is contained in:
14
serverless/awsjs/src/index.ts
Normal file
14
serverless/awsjs/src/index.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import "../../../js";
|
||||
|
||||
import { Context, APIGatewayProxyResult, APIGatewayEvent } from "aws-lambda";
|
||||
|
||||
export const handler = async (
|
||||
event: APIGatewayEvent,
|
||||
context: Context
|
||||
): Promise<APIGatewayProxyResult> => {
|
||||
const response = {
|
||||
statusCode: 200,
|
||||
body: JSON.stringify("Hello from Lambda!"),
|
||||
};
|
||||
return response;
|
||||
};
|
||||
Reference in New Issue
Block a user