Skip to content

Commit 163965c

Browse files
Add docs from gofiber/fiber@8f90f97
1 parent 232c957 commit 163965c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/core/guide/routing.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ In addition, several parameters in a row and several unnamed parameter character
128128
app.Get("/:sign:param", handler)
129129

130130
// GET /api-v1
131-
// Params: "name" -> "v1"
131+
// Params: "name" -> "v1"
132132
app.Get("/api-:name", handler)
133133

134134
// GET /customer/v1/cart/proxy
@@ -180,7 +180,7 @@ app.Get("/:test<min(5)>", func(c fiber.Ctx) error {
180180
// 12
181181

182182
// curl -X GET http://localhost:3000/1
183-
// Cannot GET /1
183+
// Not Found
184184
```
185185

186186
</TabItem>
@@ -194,10 +194,10 @@ app.Get("/:test<min(100);maxLen(5)>", func(c fiber.Ctx) error {
194194
})
195195

196196
// curl -X GET http://localhost:3000/120000
197-
// Cannot GET /120000
197+
// Not Found
198198

199199
// curl -X GET http://localhost:3000/1
200-
// Cannot GET /1
200+
// Not Found
201201

202202
// curl -X GET http://localhost:3000/250
203203
// 250
@@ -214,10 +214,10 @@ app.Get(`/:date<regex(\d{4}-\d{2}-\d{2})>`, func(c fiber.Ctx) error {
214214
})
215215

216216
// curl -X GET http://localhost:3000/125
217-
// Cannot GET /125
217+
// Not Found
218218

219219
// curl -X GET http://localhost:3000/test
220-
// Cannot GET /test
220+
// Not Found
221221

222222
// curl -X GET http://localhost:3000/2022-08-27
223223
// 2022-08-27
@@ -243,7 +243,7 @@ app.Get("/:test<int>?", func(c fiber.Ctx) error {
243243
// curl -X GET http://localhost:3000/
244244
//
245245
// curl -X GET http://localhost:3000/7.0
246-
// Cannot GET /7.0
246+
// Not Found
247247
```
248248

249249
#### Custom Constraint

0 commit comments

Comments
 (0)