Skip to content

Commit 6f3d526

Browse files
authored
chore: clarify supported HTTP methods in routes documentation (#1422)
1 parent 7a57b1c commit 6f3d526

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/dynamic-settings/routes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ An object containing parameters for each [route](#routes).
1818
- `body` - http response body.
1919
* `rewritePath`: A boolean flag that indicates that the path to the upstream server will be replaced with the path of the original request, if this flag is set to `true`.
2020
* `paths`: A list of paths to be matched request's path. If any path is matched, the request will be processed by this route. **Note**. A path can be a plain string or a regular expression.
21-
* `methods`: A list of HTTP methods supported by this route.
21+
* `methods`: A list of HTTP methods supported by this route. Supported methods: GET, POST, PUT, DELETE, HEAD and PATCH.
2222
* `maxRetryAttempts`: Maximum number of [retry](https://docs.dialx.ai/platform/core/load-balancer#fallbacks) attempts in case if upstream server returns unsuccessful response code. In this case load balancer will try to find another upstream from the list of available upstreams.
2323
* `order`: The value of this parameter determines the order within the global routes. The lower value means the higher priority. The value can't be negative integer. The default one is 2^31-1.
2424
* `upstreams`: A list of upstream servers. Either `response` or `upstreams` must be provided. Refer to [routes.<route_name>.upstreams](#routesroute_nameupstreams) for more details.
@@ -41,7 +41,7 @@ A list of upstream servers with their parameters. Use to configure [load balanci
4141
"vector_store_query": {
4242
"paths": ["/v1/vector_store(/[^/]+)*$"],
4343
"rewritePath": true,
44-
"methods": ["GET", "HEAD"],
44+
"": ["GET", "HEAD"],
4545
"userRoles": ["role1"],
4646
"upstreams": [
4747
{

0 commit comments

Comments
 (0)