🐛 Fix all route validate the auth state

This commit is contained in:
LittleSheep 2024-10-27 00:36:06 +08:00
parent 3d487fa48b
commit d588b0723b

View File

@ -19,7 +19,7 @@ func MapAPIs(app *fiber.App) {
}
// Common websocket gateway
app.Use(auth.ValidatorMiddleware).Get("/ws", websocket.New(ws.Listen))
app.Get("/ws", auth.ValidatorMiddleware, websocket.New(ws.Listen))
app.All("/inv/:command", invokeCommand)
app.All("/cgi/:service/*", forwardService)