You've already forked serverless-webpack
mirror of
https://github.com/encounter/serverless-webpack.git
synced 2026-03-30 11:37:58 -07:00
25 lines
496 B
JavaScript
25 lines
496 B
JavaScript
import BbPromise from 'bluebird';
|
|
|
|
const THE_MESSAGE = 'Hello from the webpack 4 sample';
|
|
|
|
export class App {
|
|
static handleFirst(event) {
|
|
const myDemoResult = {
|
|
message: App.THE_MESSAGE,
|
|
from: 'First lambda ;-)',
|
|
event
|
|
};
|
|
|
|
return BbPromise.resolve(myDemoResult);
|
|
}
|
|
|
|
static handleSecond(event) {
|
|
const myDemoResult = {
|
|
message: THE_MESSAGE,
|
|
from: 'Second lambda ;-)',
|
|
event
|
|
};
|
|
|
|
return BbPromise.resolve(myDemoResult);
|
|
}
|
|
} |