This commit is contained in:
YouROK
2021-09-08 23:08:08 +03:00
parent fb60b02e84
commit 49caf0e42d
4 changed files with 23 additions and 10 deletions

View File

@@ -8,6 +8,7 @@ import (
"github.com/gin-gonic/gin"
"server/dlna"
"server/settings"
"server/web/msx"
"server/log"
"server/torr"
@@ -48,9 +49,11 @@ func Start(port string) {
routeAuth := auth.SetupAuth(route)
if routeAuth != nil {
api.SetupRoute(routeAuth)
msx.SetupRoute(routeAuth)
pages.SetupRoute(routeAuth)
} else {
api.SetupRoute(&route.RouterGroup)
msx.SetupRoute(&route.RouterGroup)
pages.SetupRoute(&route.RouterGroup)
}
if settings.BTsets.EnableDLNA {