Skip to content

Commit d9b04df

Browse files
authored
Merge pull request #28 from platformsh/readme-fix
Fix README method name typo.
2 parents 757bfb4 + 4e1dfe3 commit d9b04df

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)