diff --git a/router/router.go b/router/router.go index 2fa37b3b2..2d3dc2a4e 100644 --- a/router/router.go +++ b/router/router.go @@ -140,16 +140,12 @@ func Load(mux *httptreemux.ContextMux, middleware ...gin.HandlerFunc) http.Handl ) } - info := e.Group("/api/info") + queue := e.Group("/api/queue") { - info.GET("/queue", + queue.GET("/info", session.MustAdmin(), server.GetQueueInfo, ) - } - - queue := e.Group("/api/queue") - { queue.GET("/pause", session.MustAdmin(), server.PauseQueue,