summaryrefslogtreecommitdiff
path: root/src/api/endpoints.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-10-31 22:35:31 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-10-31 22:35:31 +0900
commit5efb52b9f563ae7d6b5383d054a6c21fee676b68 (patch)
tree96c4bf8ce8403e3a5dd75f10f7f3c1193cf2bbca /src/api/endpoints.ts
parentFix indent (diff)
downloadsharkey-5efb52b9f563ae7d6b5383d054a6c21fee676b68.tar.gz
sharkey-5efb52b9f563ae7d6b5383d054a6c21fee676b68.tar.bz2
sharkey-5efb52b9f563ae7d6b5383d054a6c21fee676b68.zip
wip
Diffstat (limited to 'src/api/endpoints.ts')
-rw-r--r--src/api/endpoints.ts12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/api/endpoints.ts b/src/api/endpoints.ts
index 29a97bcb8a..26177b8775 100644
--- a/src/api/endpoints.ts
+++ b/src/api/endpoints.ts
@@ -474,8 +474,16 @@ 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')
+ }
+ },
];
export default endpoints;