Files
fn-serverless/docs/routes.md
C Cirello 66d446b148 functions: returns HTTP error in case of route update attempt (#396)
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
2016-12-07 19:54:09 +01:00

560 B

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.

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.