bunrouter icon indicating copy to clipboard operation
bunrouter copied to clipboard

Golang HTTP router

Results 17 bunrouter issues
Sort by recently updated
recently updated
newest added

Normally I would use middleware like this: ``` router.Use(middleware.MyMiddleware).GET("/demo", myDemoHandler) ``` But let's say, I want to check in the middleware if the user has permissions to use the handler....

I have these dirs: ``` - static - index.html - js - main.js ``` and I'm using the code listed here: https://bunrouter.uptrace.dev/guide/serving-static-files.html#fs-sub. Single file retrieving is working fine (eg. `static/js/main.js`)....

## 💡 The feature or bug you are proposing [feature] reqlog middleware to be configurable ## 📄 The description of the bug or the logic behind your proposal Are you...

enhancement
good first issue

## 📄 What has changed Enhancement for https://github.com/uptrace/bunrouter/issues/79 Configured reqlog middleware to log request IP Address, request Path, headers and params ## ✅ Before submitting, please be sure to check...

## 💡 The feature or bug you are proposing Using `bunrouter.JSON` in handlers passed to either `WithNotFoundHandler` or `WithMethodNotAllowedHandler` results in `application/text` Content-Type header. ## 📄 The description of the...

question

## 📄 What has changed There was a bug in the `_findRoute` method of the file `node.go`. Please see the adjusted test `TestMethodNotAllowed` in `router_test.go` as an example. ## ✅...

## 💡 The feature or bug you are proposing Bugfix: https://github.com/uptrace/bunrouter/pull/97 ## 📄 The description of the bug or the logic behind your proposal If the route exists but the...

According to documentation, `r.POST("/api/v1/test", ...)` should support both path: `/api/v1/test` and `/api/v1/test/` This is not the case, when I call `/api/v1/test/`, I get a 405 Method not allowed error. The...

## 💡 The feature or bug you are proposing Feature: Ability to append or remove a middleware to/from an existing group ## 📄 The description of the bug or the...