Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit b3053f8

Browse files
authored
Create index.js
1 parent b4da1bb commit b3053f8

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

src/index.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
const login = require('./classes/Login.js');
2+
const user = require('./classes/User.js');
3+
const post = require('./classes/Post.js');
4+
const comment = require('./classes/Comment.js');
5+
const leaderboard = require('./classes/Leaderboard.js');
6+
const notifications = require('./classes/Notifications.js');
7+
const misc = require('./classes/Misc.js')
8+
9+
if (!login) throw new Error('Login class not found');
10+
if (!user) throw new Error('User class not found');
11+
if (!post) throw new Error('Post class not found');
12+
if (!comment) throw new Error('Comment class not found');
13+
if (!leaderboard) throw new Error('Leaderboard class not found');
14+
if (!notifications) throw new Error('Notifications class not found');
15+
if (!misc) throw new Error('Miscellaneous class not found');
16+
17+
module.exports = {
18+
Login: login.Login,
19+
User: user.User,
20+
Post: post.Post,
21+
Comment: comment.Comment,
22+
Leaderboard: leaderboard.Leaderboard,
23+
Notifications: notifications.Notifications,
24+
Misc: misc.Misc
25+
}

0 commit comments

Comments
 (0)