summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/admin/show-users.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/api/endpoints/admin/show-users.ts')
-rw-r--r--src/server/api/endpoints/admin/show-users.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/server/api/endpoints/admin/show-users.ts b/src/server/api/endpoints/admin/show-users.ts
index 03abe7a57b..a853805201 100644
--- a/src/server/api/endpoints/admin/show-users.ts
+++ b/src/server/api/endpoints/admin/show-users.ts
@@ -3,6 +3,11 @@ import define from '../../define';
import { Users } from '../../../../models';
export const meta = {
+ desc: {
+ 'ja-JP': '管理者用のユーザー一覧を表示します。',
+ 'en-US': 'Displays a list of users for administrators.'
+ },
+
tags: ['admin'],
requireCredential: true as const,
@@ -61,6 +66,16 @@ export const meta = {
validator: $.optional.str,
default: null
}
+ },
+
+ res: {
+ type: 'array' as const,
+ nullable: false as const, optional: false as const,
+ items: {
+ type: 'object' as const,
+ nullable: false as const, optional: false as const,
+ ref: 'User'
+ }
}
};