Keepalive must return an ID to be used with dataProvider.getOne
This commit is contained in:
+3
-1
@@ -69,7 +69,9 @@ func (app *Router) routes(path string) http.Handler {
|
|||||||
app.addPlaylistTrackRoute(r)
|
app.addPlaylistTrackRoute(r)
|
||||||
|
|
||||||
// Keepalive endpoint to be used to keep the session valid (ex: while playing songs)
|
// Keepalive endpoint to be used to keep the session valid (ex: while playing songs)
|
||||||
r.Get("/keepalive/*", func(w http.ResponseWriter, r *http.Request) { _, _ = w.Write([]byte(`{"response":"ok"}`)) })
|
r.Get("/keepalive/*", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
_, _ = w.Write([]byte(`{"response":"ok", "id":"keepalive"}`))
|
||||||
|
})
|
||||||
|
|
||||||
if conf.Server.DevActivityPanel {
|
if conf.Server.DevActivityPanel {
|
||||||
r.Handle("/events", app.broker)
|
r.Handle("/events", app.broker)
|
||||||
|
|||||||
Reference in New Issue
Block a user