summaryrefslogtreecommitdiff
path: root/src/api/endpoints.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints.ts')
-rw-r--r--src/api/endpoints.ts21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/api/endpoints.ts b/src/api/endpoints.ts
index 29a97bcb8a..c4dacad857 100644
--- a/src/api/endpoints.ts
+++ b/src/api/endpoints.ts
@@ -474,8 +474,25 @@ const endpoints: Endpoint[] = [
name: 'messaging/messages/create',
withCredential: true,
kind: 'messaging-write'
- }
-
+ },
+ {
+ name: 'channels/create',
+ withCredential: true,
+ limit: {
+ duration: ms('1hour'),
+ max: 3,
+ minInterval: ms('10seconds')
+ }
+ },
+ {
+ name: 'channels/show'
+ },
+ {
+ name: 'channels/posts'
+ },
+ {
+ name: 'channels'
+ },
];
export default endpoints;