Skip to content

Commit

Permalink
Add HTTP API example
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Feb 14, 2020
1 parent 6893d7a commit 43cfecb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ functions:
environment:
BREF_LOOP_MAX: 100

http-api:
handler: demo/http.php
description: 'Bref HTTP demo'
timeout: 5 # in seconds (API Gateway has a timeout of 29 seconds)
memory: 1024
layers:
- ${bref:layer.php-74-fpm}
events:
- httpApi: '*'

console:
handler: demo/console.php
description: 'Bref console command demo'
Expand Down

0 comments on commit 43cfecb

Please sign in to comment.