generate screenshot using Xlib.

This commit is contained in:
Miroslav Šedivý 2021-01-21 20:44:09 +01:00
parent 7ff6ada205
commit afd3dd2f56
8 changed files with 110 additions and 1 deletions

View file

@ -61,7 +61,8 @@ func (h *RoomHandler) Route(r chi.Router) {
})
r.Route("/screen", func(r chi.Router) {
r.Get("/", h.screenConfiguration)
r.With(auth.CanWatchOnly).Get("/", h.screenConfiguration)
r.With(auth.CanWatchOnly).Get("/image", h.screenImageGet)
r.With(auth.AdminsOnly).Post("/", h.screenConfigurationChange)
r.With(auth.AdminsOnly).Get("/configurations", h.screenConfigurationsList)