mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 12:14:08 -06:00
ddfe2dce74
* split Lotex and Grafana routes * update template to use authorize function for every route
12 lines
258 B
Go
12 lines
258 B
Go
package api
|
|
|
|
import (
|
|
"github.com/grafana/grafana/pkg/middleware"
|
|
"github.com/grafana/grafana/pkg/web"
|
|
)
|
|
|
|
func (api *API) authorize(method, path string) web.Handler {
|
|
// TODO Add fine-grained authorization for every route
|
|
return middleware.ReqSignedIn
|
|
}
|