Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔥 Feature: Add Route() method like Chi router. #1713

Merged
merged 1 commit into from Jan 24, 2022

Conversation

efectn
Copy link
Member

@efectn efectn commented Jan 14, 2022

Add Route method like Chi router.

Signature:

Route(prefix string, fn func(router Router), name ...string) Router

Using Example:

app.Route("/test", func(router fiber.Router) {
	router.Get("/john", func(c *fiber.Ctx) error {
		return c.SendString("doe")
	}).Name("john")
}, "test.")

@ReneWerner87
Copy link
Member

ReneWerner87 commented Jan 18, 2022

don´t forget the doc repository

@gofiber/maintainers what do you think?

@ReneWerner87 ReneWerner87 merged commit 559f59f into gofiber:master Jan 24, 2022
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants