REST API: simplify json response by removing result wrapper (BC) (#22299)

This commit is contained in:
andig 2025-08-01 15:00:14 +02:00 • committed by GitHub
parent db824ad42d
commit d541dfa4fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 423 additions and 293 deletions

View file

@ -87,7 +87,7 @@ func sessionHandler(w http.ResponseWriter, r *http.Request) {
return
}
jsonResult(w, res)
jsonWrite(w, res)
}
// deleteSessionHandler removes session in sessions table with given id
@ -107,7 +107,7 @@ func deleteSessionHandler(w http.ResponseWriter, r *http.Request) {
return
}
jsonResult(w, res)
jsonWrite(w, res)
}
// updateSessionHandler updates the data of an existing session