You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
apl-nuke/src/ws/channels.js

29 lines
351 B
JavaScript

const channels = [
'rosters',
'matches',
'streams',
'events',
'casters',
'hosts',
];
const events = [
'create',
'read',
'update',
'delete',
];
const channelEvents = [];
channels.forEach((c) => {
events.forEach((e) => {
channelEvents.push(`${c}:${e}`);
});
})
module.exports = {
channelEvents,
channels,
events,
};