mirror of
https://github.com/grafana/grafana.git
synced 2025-07-28 11:22:20 +08:00
Chore: replace macaron with web package (#40136)
* replace macaron with web package * add web.go
This commit is contained in:
@ -3,7 +3,7 @@ package routing
|
||||
import (
|
||||
"github.com/grafana/grafana/pkg/api/response"
|
||||
"github.com/grafana/grafana/pkg/models"
|
||||
"gopkg.in/macaron.v1"
|
||||
"github.com/grafana/grafana/pkg/web"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -12,7 +12,7 @@ var (
|
||||
}
|
||||
)
|
||||
|
||||
func Wrap(action interface{}) macaron.Handler {
|
||||
func Wrap(action interface{}) web.Handler {
|
||||
return func(c *models.ReqContext) {
|
||||
var res response.Response
|
||||
val, err := c.Invoke(action)
|
||||
|
Reference in New Issue
Block a user