mirror of https://github.com/grafana/grafana.git
Chore: return a JSON on folder DELETE (#73604)
This commit is contained in:
parent
e17928c194
commit
00893a158c
|
|
@ -19,6 +19,7 @@ import (
|
|||
"github.com/grafana/grafana/pkg/services/org"
|
||||
"github.com/grafana/grafana/pkg/services/search"
|
||||
"github.com/grafana/grafana/pkg/services/user"
|
||||
"github.com/grafana/grafana/pkg/util"
|
||||
"github.com/grafana/grafana/pkg/web"
|
||||
)
|
||||
|
||||
|
|
@ -294,7 +295,9 @@ func (hs *HTTPServer) DeleteFolder(c *contextmodel.ReqContext) response.Response
|
|||
return apierrors.ToFolderErrorResponse(err)
|
||||
}
|
||||
|
||||
return response.JSON(http.StatusOK, "")
|
||||
return response.JSON(http.StatusOK, util.DynMap{
|
||||
"message": "Folder deleted",
|
||||
})
|
||||
}
|
||||
|
||||
// swagger:route GET /folders/{folder_uid}/counts folders getFolderDescendantCounts
|
||||
|
|
|
|||
Loading…
Reference in New Issue