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

Add Group and Middleware support #44

Closed
vinhjaxt opened this issue Aug 11, 2018 · 2 comments
Closed

Add Group and Middleware support #44

vinhjaxt opened this issue Aug 11, 2018 · 2 comments

Comments

@vinhjaxt
Copy link

Hello contributors,

I am looking for something like this

router.Use(MiddlewareFunction)

and

api = router.Group("/api")
api.Use(APIMiddleware)
api.GET("/", handle)

Can you add this features?
Thanks.

@savsgio
Copy link

savsgio commented Aug 11, 2018

For use middlewares in fasthttp, I recommend to use Atreugo (https://github.com/savsgio/atreugo). It is built on top of fasthttp and it use fasthttprouter internally for routing.

@vinhjaxt
Copy link
Author

Yes, i will take a look.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants