Grouping queue endpoints

This commit is contained in:
Laszlo Fogas 2019-07-09 13:54:22 +02:00
parent e5111f3ebe
commit 567e6b8a18

View file

@ -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,