mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 04:09:50 +08:00
Work on making grafana work in sub url
This commit is contained in:
@ -9,6 +9,7 @@ import (
|
||||
|
||||
"github.com/torkelo/grafana-pro/pkg/bus"
|
||||
m "github.com/torkelo/grafana-pro/pkg/models"
|
||||
"github.com/torkelo/grafana-pro/pkg/setting"
|
||||
)
|
||||
|
||||
func authGetRequestAccountId(c *Context, sess session.Store) (int64, error) {
|
||||
@ -29,7 +30,7 @@ func authGetRequestAccountId(c *Context, sess session.Store) (int64, error) {
|
||||
}
|
||||
|
||||
func authDenied(c *Context) {
|
||||
c.Redirect("/login")
|
||||
c.Redirect(setting.AppSubUrl + "/login")
|
||||
}
|
||||
|
||||
func Auth() macaron.Handler {
|
||||
|
Reference in New Issue
Block a user