mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
return missing "/search" and "/site.webmanifest" router
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
config "server/settings"
|
||||
"server/web/auth"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
@@ -39,7 +40,11 @@ func SetupRoute(route gin.IRouter) {
|
||||
|
||||
authorized.GET("/download/:size", download)
|
||||
|
||||
authorized.GET("/search/*query", rutorSearch)
|
||||
|
||||
if config.SearchWA {
|
||||
route.GET("/search/*query", rutorSearch)
|
||||
} else {
|
||||
authorized.GET("/search/*query", rutorSearch)
|
||||
}
|
||||
|
||||
authorized.GET("/ffp/:hash/:id", ffp)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user