moved all http route handling into single package named api

This commit is contained in:
Torkel Ödegaard
2014-12-15 21:25:02 +01:00
parent 1663cbbb34
commit 973b9cad36
11 changed files with 56 additions and 58 deletions
+2 -2
View File
@@ -12,9 +12,9 @@ import (
"github.com/codegangsta/cli"
"github.com/macaron-contrib/session"
"github.com/torkelo/grafana-pro/pkg/api"
"github.com/torkelo/grafana-pro/pkg/log"
"github.com/torkelo/grafana-pro/pkg/middleware"
"github.com/torkelo/grafana-pro/pkg/routes"
"github.com/torkelo/grafana-pro/pkg/setting"
"github.com/torkelo/grafana-pro/pkg/social"
"github.com/torkelo/grafana-pro/pkg/stores/sqlstore"
@@ -78,7 +78,7 @@ func runWeb(*cli.Context) {
}
m := newMacaron()
routes.Register(m)
api.Register(m)
var err error
listenAddr := fmt.Sprintf("%s:%s", setting.HttpAddr, setting.HttpPort)