Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
greenpau committed Jan 3, 2024
1 parent b1a24a9 commit 4bbd2ba
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions README.md
Expand Up @@ -23,20 +23,18 @@ plugin, i.e. the plugin writes response headers and body.
## Getting Started

```
{
http_port 9080
https_port 9443
}
localhost:9080 {
route /api/foo {
lambda {
runtime python
script_path assets/scripts/api/hello_world.py
}
}
route {
respond "OK"
}
localhost {
route /api/* {
lambda {
name hello_world
runtime python
python_executable {$HOME}/path/to/venv/bin/python
entrypoint assets/scripts/api/hello_world/app/index.py
function handler
}
}
route {
respond "OK"
}
}
```

0 comments on commit 4bbd2ba

Please sign in to comment.