Allow database stats downloads (#738)

* Add button to download database stats
* Return xml as well
This commit is contained in:
Dan Sosedoff
2024-05-25 10:59:23 -07:00
committed by GitHub
parent 63f1150056
commit 3a32f531a0
4 changed files with 54 additions and 9 deletions

View File

@@ -155,11 +155,12 @@ func assetContentType(name string) string {
// Send a query result to client
func serveResult(c *gin.Context, result interface{}, err interface{}) {
if err == nil {
successResponse(c, result)
} else {
if err != nil {
badRequest(c, err)
return
}
successResponse(c, result)
}
// Send successful response back to client