Datasource proxy & session timeout fix (casued 401 Unauthorized error after a while), Fixes #1667

This commit is contained in:
Torkel Ödegaard
2015-04-07 09:25:00 +02:00
parent 382f7066d9
commit 22adf0d06e
7 changed files with 109 additions and 55 deletions

View File

@ -48,6 +48,9 @@ func Register(r *macaron.Macaron) {
r.Get("/api/snapshots/:key", GetDashboardSnapshot)
r.Get("/api/snapshots-delete/:key", DeleteDashboardSnapshot)
// api renew session based on remember cookie
r.Get("/api/login/ping", LoginApiPing)
// authed api
r.Group("/api", func() {
// user