mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
refactor
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user