1234567891011121314151617181920212223 |
- Smalltalk createPackage: 'Webstore-Backend'!
- Object subclass: #WebstoreBackend
- slots: {}
- package: 'Webstore-Backend'!
- !WebstoreBackend methodsFor: 'lambda api'!
- echoEvent: event andContext: context
- ^ #{
- #statusCode -> 200.
- #headers->#{'Access-Control-Allow-Origin' -> '*'}.
- #body -> (JSON stringify: #{#event -> event. #context -> context})
- }
- !
- status
- ^ #{
- #statusCode -> 200.
- #headers->#{'Access-Control-Allow-Origin' -> '*'}.
- #body -> (JSON stringify: #{#ok -> true. #amber -> Smalltalk version. #node -> process version})
- }
- ! !
|