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

Commit d3b7669

Browse files
author
Rayhan Arayilakath
committed
Add Basic Initialization Function
1 parent 15cffde commit d3b7669

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

index.js

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
let replapi = require('./src')
22

3-
module.exports = {
4-
User: replapi.User,
5-
Post: replapi.Post,
6-
Repl: replapi.Repl,
7-
Comment: replapi.Comment,
8-
Leaderboard: replapi.Leaderboard,
9-
Languages: replapi.Languages,
10-
Board: replapi.Board,
11-
Notifications: replapi.Notifications,
12-
Misc: replapi.Misc,
13-
Login: replapi.Login,
14-
CustomDataQuery: replapi.CustomDataQuery,
15-
CustomRecursiveQuery: replapi.CustomRecursiveQuery
3+
module.exports = function(initVariables) {
4+
global.initVariables = initVariables
5+
return {
6+
User: replapi.User,
7+
Post: replapi.Post,
8+
Repl: replapi.Repl,
9+
Comment: replapi.Comment,
10+
Leaderboard: replapi.Leaderboard,
11+
Languages: replapi.Languages,
12+
Board: replapi.Board,
13+
Notifications: replapi.Notifications,
14+
Misc: replapi.Misc,
15+
Login: replapi.Login,
16+
CustomDataQuery: replapi.CustomDataQuery,
17+
CustomRecursiveQuery: replapi.CustomRecursiveQuery
18+
}
1619
};

0 commit comments

Comments
 (0)