From 57aef091c4d0b171082ff590ec630e2cec9284e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Werner?= Date: Sun, 27 Aug 2023 14:27:40 +0200 Subject: [PATCH] add docs for dynamic routing --- docs/guide/routing.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/guide/routing.md b/docs/guide/routing.md index 615d1aa2f2..9c7b4166f6 100644 --- a/docs/guide/routing.md +++ b/docs/guide/routing.md @@ -262,6 +262,13 @@ app.Get("/", func(c *fiber.Ctx) error { `Use` method path is a **mount**, or **prefix** path, and limits middleware to only apply to any paths requested that begin with it. +### Constraints on Adding Routes Dynamically + +:::warning +Adding routes dynamically after the application has started is not supported due to design and performance considerations. Make sure to define all your routes before the application starts. +::: + + ## Grouping If you have many endpoints, you can organize your routes using `Group`.