fasthttprouter icon indicating copy to clipboard operation
fasthttprouter copied to clipboard

Add group

Open GoWebProd opened this issue 7 years ago • 4 comments

Usage:

group := &fasthttprouter.Group{}
group.Handle("POST", "/auth", api.handleAuthorization)

router := fasthttprouter.New()
router.Group("/api/v1/", group)

Can request: /api/v1/auth

GoWebProd avatar May 01 '18 16:05 GoWebProd

Coverage Status

Coverage decreased (-8.4%) to 91.299% when pulling 6300bd291ed0c58ec0367eb0b5ef4306641ad18f on GoWebProd:master into 28db72dff5a1512dab256b4b7f85c5aa8c36cf73 on buaazp:master.

coveralls avatar May 01 '18 16:05 coveralls

Coverage Status

Coverage decreased (-8.4%) to 91.299% when pulling 6300bd291ed0c58ec0367eb0b5ef4306641ad18f on GoWebProd:master into 28db72dff5a1512dab256b4b7f85c5aa8c36cf73 on buaazp:master.

coveralls avatar May 01 '18 16:05 coveralls

Hi @GoWebProd,

The official fasthttp organization is maintaining this repo in https://github.com/fasthttp/router.

Thanks.

savsgio avatar Dec 31 '18 11:12 savsgio

Hi @GoWebProd This is a useful feature for a router. What I concerned is it will break the original behavior. So can you add some unit tests and I will merge later.

buaazp avatar Jan 09 '19 15:01 buaazp