Skip to content

🎧 Your Personal Streaming Service

Moved router to conf package

Deluan4efb8ab031a4
diff --git a/api/api_test.go b/api/api_test.go
index 1d7d45af6..d6f8cf67c 100644
--- a/api/api_test.go
+++ b/api/api_test.go
@@ -5,7 +5,7 @@ import (
"github.com/astaxie/beego"
"net/http"
"net/http/httptest"
- _ "github.com/deluan/gosonic/routers"
+ _ "github.com/deluan/gosonic/conf"
)
const (
diff --git a/routers/router.go b/conf/router.go
similarity index 98%
rename from routers/router.go
rename to conf/router.go
index 80becc1b3..65cad19ad 100644
--- a/routers/router.go
+++ b/conf/router.go
@@ -1,4 +1,4 @@
-package routers
+package conf
import (
"github.com/deluan/gosonic/api"
diff --git a/controllers/main_test.go b/controllers/main_test.go
index d7ff03e11..af7f77e45 100644
--- a/controllers/main_test.go
+++ b/controllers/main_test.go
@@ -8,7 +8,7 @@ import (
"net/http/httptest"
"github.com/astaxie/beego"
"fmt"
- _ "github.com/deluan/gosonic/routers"
+ _ "github.com/deluan/gosonic/conf"
)
func TestErrorHandler(t *testing.T) {
diff --git a/main.go b/main.go
index ba007e2da..9b6ecf5fe 100644
--- a/main.go
+++ b/main.go
@@ -1,7 +1,7 @@
package main
import (
- _ "github.com/deluan/gosonic/routers"
+ _ "github.com/deluan/gosonic/conf"
"github.com/astaxie/beego"
)