-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.js
More file actions
44 lines (38 loc) · 1.6 KB
/
index.js
File metadata and controls
44 lines (38 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* @module Amino.JS
* @author RobStyling
* @version v.2.0
*/
const config = {};
// Two function for sharing global config, like the SID key
module.exports.setConfig = (key, value) => {
config[key] = value;
};
module.exports.getConfig = (key) => {
return config[key];
};
//Global Error-Messages.
const errorMessages = {
missingSid: 'SID is not specified, please use the login() method to authenticate',
};
module.exports.errorMessages = errorMessages;
/**
* For exporting the Functions for Usage in the Client.
*/
module.exports = {
login: require('./modules/login'), //TEST-CASE: OK
getMyProfile: require('./modules/getMyProfile'), //TEST-CASE: OK
getJoinedComs: require('./modules/getJoinedComs'), //TEST-CASE: OK
getJoinedChats: require('./modules/getJoinedChats'), //TEST-CASE: OK
getUserBlogs: require('./modules/getUserBlogs'), //TEST-CASE: OK
getChat: require('./modules/getChat'), //TEST-CASE: OK
sendChat: require('./modules/sendChat'), //TEST-CASE: OK
postBlog: require('./modules/postBlog'), //TEST-CASE: OK
deleteBlog: require('./modules/deleteBlog'), //TEST-CASE: OK
getCommentsPost: require('./modules/commentsPost'), //TEST-CASE: OK
commentPost: require('./modules/commentPost'), //TEST-CASE: OK
getComBlogFeed: require('./modules/getCommunityBlogFeed'), //TEST-CASE: OK
createWikiEntry: require('./modules/createWikiEntry'), //TEST-CASE: OK
deleteWikiEntry: require('./modules/deleteWikiEntry'), //TEST-CASE: OK
commentWikiEntry: require('./modules/commentWikiEntry') //TEST-CASE: OK
};