mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-05-05 11:21:49 +00:00
(jsrt) opt.: struct
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"one-api/common"
|
||||
"one-api/middleware"
|
||||
"one-api/middleware/jsrt"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
)
|
||||
|
||||
func SetRouter(router *gin.Engine, buildFS embed.FS, indexPage []byte) {
|
||||
router.Use(middleware.JSRuntimeMiddleware())
|
||||
router.Use(jsrt.JSRuntimeMiddleware())
|
||||
SetApiRouter(router)
|
||||
SetDashboardRouter(router)
|
||||
SetRelayRouter(router)
|
||||
|
||||
Reference in New Issue
Block a user