Skip to content

Commit 4e1dfe3

Browse files
committed
Fix README method name typo.
1 parent 757bfb4 commit 4e1dfe3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ This method looks for the "foo" variable. If found, it is returned. If not, th
157157
[Routes](https://docs.platform.sh/configuration/routes.html) on Platform.sh define how a project will handle incoming requests; that primarily means what application container will serve the request, but it also includes cache configuration, TLS settings, etc. Routes may also have an optional ID, which is the preferred way to access them.
158158

159159
```python
160-
config.route("main")
160+
config.get_route("main")
161161
```
162162

163-
The `route()` method takes a single string for the route ID ("main" in this case) and returns the corresponding route array. If the route is not found it will throw an exception.
163+
The `get_route()` method takes a single string for the route ID ("main" in this case) and returns the corresponding route array. If the route is not found it will throw an exception.
164164

165165
To access all routes, or to search for a route that has no ID, the `routes()` method returns an dictionary of routes keyed by their URL. That mirrors the structure of the `PLATFORM_ROUTES` environment variable.
166166

0 commit comments

Comments
 (0)