mirror of
https://github.com/portainer/portainer.git
synced 2025-08-09 07:45:22 +02:00
docs(api/dashboard): docker/{envId}/dashboard incorrectly marked as POST instead of GET (#996)
This commit is contained in:
parent
9325cb2872
commit
85b7e881eb
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ type dashboardResponse struct {
|
||||||
// @success 200 {object} dashboardResponse "Success"
|
// @success 200 {object} dashboardResponse "Success"
|
||||||
// @failure 400 "Bad request"
|
// @failure 400 "Bad request"
|
||||||
// @failure 500 "Internal server error"
|
// @failure 500 "Internal server error"
|
||||||
// @router /docker/{environmentId}/dashboard [post]
|
// @router /docker/{environmentId}/dashboard [get]
|
||||||
func (h *Handler) dashboard(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
|
func (h *Handler) dashboard(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
|
||||||
var resp dashboardResponse
|
var resp dashboardResponse
|
||||||
err := h.dataStore.ViewTx(func(tx dataservices.DataStoreTx) error {
|
err := h.dataStore.ViewTx(func(tx dataservices.DataStoreTx) error {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue