REST API: simplify json response by removing result wrapper (BC) (#22299)
This commit is contained in:
parent
db824ad42d
commit
d541dfa4fa
28 changed files with 423 additions and 293 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue