From 567e6b8a18d625f19e7ebcc0cfe452ae7dd2d336 Mon Sep 17 00:00:00 2001 From: Laszlo Fogas Date: Tue, 9 Jul 2019 13:54:22 +0200 Subject: [PATCH] Grouping queue endpoints --- router/router.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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,