Skip to main content

Regex

  • yaml/json setting: regex
  • Type: string (containing a regular expression)
  • Optional
  • Example: ^/(admin|superuser)/.*$

If set, the route will only match incoming requests with a path that matches the specified regular expression. The supported syntax is the same as the Go regexp package which is based on re2.