minor

Gerasimos (Makis) Maropoulos 2019-07-06 15:44:17 +03:00
parent eaa43a9f74
commit e63227d325
No known key found for this signature in database
GPG Key ID: F169457BBDA4ACF4

@ -30,7 +30,7 @@ Once the handler is registered, we can use the returned [`Route`](https://godoc.
## Behavior
Iris' default behavior is to accept and register routes with paths like `/api/user`, without a trailing flash. If a client tries to reach `$your_host/api/user/` then the Iris router will automatically permant redirect this to `$your_host/api/user` in order to be handled by the registered route. This is the modern way to design APIs.
Iris' default behavior is to accept and register routes with paths like `/api/user`, without a trailing slash. If a client tries to reach `$your_host/api/user/` then the Iris router will automatically permant redirect this to `$your_host/api/user` in order to be handled by the registered route. This is the modern way to design APIs.
However, if you want to **disable path correction** for the requested resources you can pass the `iris.WithoutPathCorrection` option of the iris [[Configuration]] to your `app.Run`. Example: