Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
elct9620 committed Jan 8, 2024
1 parent 5364996 commit e7366d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ And then execute:
$ bundle install
```

Create `config/lambda.rb` with below content
Update `config/app.rb` with below content

```ruby
require 'hanami'
Expand Down Expand Up @@ -69,9 +69,11 @@ Resources:
If the lambda function isn't trigger by APIGateway, we can use `delegate` method to define the handler function.

Create `config/lambda.rb` with below content

```ruby
module MyApp
class Lambda < Hanami::Lambda::Application
class Lambda < Hanami::Lambda::Dispatcher
delegate "MyFunction", to: "daily_task"
end
end
Expand Down

0 comments on commit e7366d9

Please sign in to comment.