Work on making grafana work in sub url

This commit is contained in:
Torkel Ödegaard
2015-01-04 21:03:40 +01:00
parent 9ba34aabab
commit f25a415a9e
4 changed files with 11 additions and 5 deletions

View File

@ -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 {