summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/clips
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-02-15 21:33:32 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2020-02-15 21:33:32 +0900
commit43734f027ba45dbc1d756d6b4e13dcd59f420ac2 (patch)
tree07fef8bf53c16e049bcc5fb9b08a0dd31f63443a /src/server/api/endpoints/clips
parent:art: (diff)
downloadsharkey-43734f027ba45dbc1d756d6b4e13dcd59f420ac2.tar.gz
sharkey-43734f027ba45dbc1d756d6b4e13dcd59f420ac2.tar.bz2
sharkey-43734f027ba45dbc1d756d6b4e13dcd59f420ac2.zip
Refactoring
Diffstat (limited to 'src/server/api/endpoints/clips')
-rw-r--r--src/server/api/endpoints/clips/create.ts2
-rw-r--r--src/server/api/endpoints/clips/delete.ts2
-rw-r--r--src/server/api/endpoints/clips/list.ts2
-rw-r--r--src/server/api/endpoints/clips/notes.ts2
-rw-r--r--src/server/api/endpoints/clips/show.ts2
-rw-r--r--src/server/api/endpoints/clips/update.ts2
6 files changed, 6 insertions, 6 deletions
diff --git a/src/server/api/endpoints/clips/create.ts b/src/server/api/endpoints/clips/create.ts
index a6761c5533..f1b20c1157 100644
--- a/src/server/api/endpoints/clips/create.ts
+++ b/src/server/api/endpoints/clips/create.ts
@@ -6,7 +6,7 @@ import { Clips } from '../../../../models';
export const meta = {
tags: ['clips'],
- requireCredential: true,
+ requireCredential: true as const,
kind: 'write:account',
diff --git a/src/server/api/endpoints/clips/delete.ts b/src/server/api/endpoints/clips/delete.ts
index 7e185e4652..746f93188c 100644
--- a/src/server/api/endpoints/clips/delete.ts
+++ b/src/server/api/endpoints/clips/delete.ts
@@ -7,7 +7,7 @@ import { Clips } from '../../../../models';
export const meta = {
tags: ['clips'],
- requireCredential: true,
+ requireCredential: true as const,
kind: 'write:account',
diff --git a/src/server/api/endpoints/clips/list.ts b/src/server/api/endpoints/clips/list.ts
index aa16a18d42..6ede8ea0fc 100644
--- a/src/server/api/endpoints/clips/list.ts
+++ b/src/server/api/endpoints/clips/list.ts
@@ -4,7 +4,7 @@ import { Clips } from '../../../../models';
export const meta = {
tags: ['clips', 'account'],
- requireCredential: true,
+ requireCredential: true as const,
kind: 'read:account',
};
diff --git a/src/server/api/endpoints/clips/notes.ts b/src/server/api/endpoints/clips/notes.ts
index 4e76a4d1f3..d4d994d55a 100644
--- a/src/server/api/endpoints/clips/notes.ts
+++ b/src/server/api/endpoints/clips/notes.ts
@@ -9,7 +9,7 @@ import { generateMuteQuery } from '../../common/generate-mute-query';
export const meta = {
tags: ['account', 'notes', 'clips'],
- requireCredential: true,
+ requireCredential: true as const,
kind: 'read:account',
diff --git a/src/server/api/endpoints/clips/show.ts b/src/server/api/endpoints/clips/show.ts
index 0766b3e929..5b2b7b7d5e 100644
--- a/src/server/api/endpoints/clips/show.ts
+++ b/src/server/api/endpoints/clips/show.ts
@@ -7,7 +7,7 @@ import { Clips } from '../../../../models';
export const meta = {
tags: ['clips', 'account'],
- requireCredential: true,
+ requireCredential: true as const,
kind: 'read:account',
diff --git a/src/server/api/endpoints/clips/update.ts b/src/server/api/endpoints/clips/update.ts
index d1c31eb8e6..483941214c 100644
--- a/src/server/api/endpoints/clips/update.ts
+++ b/src/server/api/endpoints/clips/update.ts
@@ -7,7 +7,7 @@ import { Clips } from '../../../../models';
export const meta = {
tags: ['clips'],
- requireCredential: true,
+ requireCredential: true as const,
kind: 'write:account',