summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/clips/list.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/api/endpoints/clips/list.ts')
-rw-r--r--src/server/api/endpoints/clips/list.ts28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/server/api/endpoints/clips/list.ts b/src/server/api/endpoints/clips/list.ts
deleted file mode 100644
index 1f6db9b979..0000000000
--- a/src/server/api/endpoints/clips/list.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-import define from '../../define';
-import { Clips } from '@/models/index';
-
-export const meta = {
- tags: ['clips', 'account'],
-
- requireCredential: true as const,
-
- kind: 'read:account',
-
- res: {
- type: 'array' as const,
- optional: false as const, nullable: false as const,
- items: {
- type: 'object' as const,
- optional: false as const, nullable: false as const,
- ref: 'Clip'
- }
- }
-};
-
-export default define(meta, async (ps, me) => {
- const clips = await Clips.find({
- userId: me.id,
- });
-
- return await Promise.all(clips.map(x => Clips.pack(x)));
-});