mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
dashboard: Fix get widgets OpenAPI
Signed-off-by: jld3103 <jld3103yt@gmail.com>
This commit is contained in:
parent
80e3064817
commit
6c840984f8
2 changed files with 3 additions and 3 deletions
|
|
@ -150,7 +150,7 @@ class DashboardApiController extends OCSController {
|
|||
* @NoAdminRequired
|
||||
* @NoCSRFRequired
|
||||
*
|
||||
* @return DataResponse<Http::STATUS_OK, DashboardWidget[], array{}>
|
||||
* @return DataResponse<Http::STATUS_OK, array<string, DashboardWidget>, array{}>
|
||||
*/
|
||||
public function getWidgets(): DataResponse {
|
||||
$widgets = $this->dashboardManager->getWidgets();
|
||||
|
|
|
|||
|
|
@ -220,8 +220,8 @@
|
|||
"$ref": "#/components/schemas/OCSMeta"
|
||||
},
|
||||
"data": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"$ref": "#/components/schemas/Widget"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue