wip
This commit is contained in:
@@ -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;
|
||||
|
@@ -2,8 +2,8 @@
|
||||
* Module dependencies
|
||||
*/
|
||||
import $ from 'cafy';
|
||||
import Channel from '../../../models/channel';
|
||||
import serialize from '../../../serializers/channel';
|
||||
import Channel from '../../models/channel';
|
||||
import serialize from '../../serializers/channel';
|
||||
|
||||
/**
|
||||
* Create a channel
|
Reference in New Issue
Block a user