Skip to content

Conversation

@blacha
Copy link
Member

@blacha blacha commented Mar 21, 2022

Create a router when using lf.http

const handler = lf.http()
handler.router.get('/v1/ping', () => new LambdaHttpResposne(200, 'Ok'));

BREAKING CHANGE: this changes lf.http and makes it return a router, To route all requests use handler.router.all('*', fn)

BREAKING CHANGE: this removes lf.http and makes it return a router, if you want to route all requests use `handler.router.all('*', fn)` to restore previous behaviour
@blacha blacha added the automerge 🚀 Automatically merge a branch using kodiak label Mar 22, 2022
@blacha blacha merged commit bf79b01 into master Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge 🚀 Automatically merge a branch using kodiak

Development

Successfully merging this pull request may close these issues.

3 participants