Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 24e92f6

Browse files
updated readme file
1 parent fd2cc10 commit 24e92f6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,12 @@ Regex based request filtering ensures that only whitelisted requests can reach t
152152
the request URL against a list of regular expressions and rejects any requests that do not match any of the
153153
regular expressions. The regular expressions matches pre configured url routes
154154
```python
155-
# list of Known Routes being serviced by the gateway
156-
route_regexes = []
155+
# dicts of Known Routes being serviced by the gateway example
156+
route_regexes = {
157+
"home": "^/$",
158+
"all_general_fundamentals": "^/api/v1/fundamental/general$",
159+
...}
160+
157161
def __init__(self):
158162
...
159163
self.compiled_patterns = [re.compile(_regex) for _regex in route_regexes.values()]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /