Moved router to conf package
This commit is contained in:
parent
375fd30045
commit
4efb8ab031
4 changed files with 4 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
_ "github.com/deluan/gosonic/routers"
|
_ "github.com/deluan/gosonic/conf"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package routers
|
package conf
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/deluan/gosonic/api"
|
"github.com/deluan/gosonic/api"
|
||||||
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
"fmt"
|
"fmt"
|
||||||
_ "github.com/deluan/gosonic/routers"
|
_ "github.com/deluan/gosonic/conf"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestErrorHandler(t *testing.T) {
|
func TestErrorHandler(t *testing.T) {
|
||||||
|
|
|
||||||
2
main.go
2
main.go
|
|
@ -1,7 +1,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_ "github.com/deluan/gosonic/routers"
|
_ "github.com/deluan/gosonic/conf"
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue