From e63227d325a290fbe119045415462a37afca126f Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Sat, 6 Jul 2019 15:44:17 +0300 Subject: [PATCH] minor --- Routing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Routing.md b/Routing.md index d4673b6..684cece 100644 --- a/Routing.md +++ b/Routing.md @@ -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: