From d588b0723b78e616169a78dd038720e932f7e813 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 27 Oct 2024 00:36:06 +0800 Subject: [PATCH] :bug: Fix all route validate the auth state --- pkg/internal/http/api/index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/http/api/index.go b/pkg/internal/http/api/index.go index c7aedda..4c00a30 100644 --- a/pkg/internal/http/api/index.go +++ b/pkg/internal/http/api/index.go @@ -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)