mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
minor
parent
eaa43a9f74
commit
e63227d325
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user