mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Ensure that attempts to update route's path are properly handled with a HTTP error. Moreover, updates swagger file to make it explicit that routes are immutable. Fixes #381
21 lines
560 B
Markdown
21 lines
560 B
Markdown
# Routes
|
|
|
|
Each application has several functions represented through routes.
|
|
|
|
## Route level configuration
|
|
|
|
When creating or updating an app, you can pass in a map of config variables.
|
|
|
|
`config` is a map of values passed to the route runtime in the form of
|
|
environment variables.
|
|
|
|
Note: Route level configuration overrides app level configuration.
|
|
|
|
```sh
|
|
fn routes create --config k1=v1 --config k2=v2 myapp /path image
|
|
```
|
|
|
|
## Notes
|
|
|
|
Route paths are immutable. If you need to change them, the appropriate approach
|
|
is to add a new route with the modified path. |