summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/notes/featured.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/api/endpoints/notes/featured.ts')
-rw-r--r--src/server/api/endpoints/notes/featured.ts11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/server/api/endpoints/notes/featured.ts b/src/server/api/endpoints/notes/featured.ts
index 08cc677abd..0d2187bb06 100644
--- a/src/server/api/endpoints/notes/featured.ts
+++ b/src/server/api/endpoints/notes/featured.ts
@@ -10,6 +10,8 @@ export const meta = {
'en-US': 'Get featured notes.'
},
+ tags: ['notes'],
+
requireCredential: false,
params: {
@@ -20,7 +22,14 @@ export const meta = {
'ja-JP': '最大数'
}
}
- }
+ },
+
+ res: {
+ type: 'array',
+ items: {
+ type: 'Note',
+ },
+ },
};
export default define(meta, async (ps, user) => {