-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
5 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters