-
Notifications
You must be signed in to change notification settings - Fork 0
/
Discussions.js
35 lines (25 loc) · 949 Bytes
/
Discussions.js
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
/*****************************************************************************
Discussions
Backend for discussions and forums.
******************************************************************************/
var Database = require("./Database.js");
exports.initialize = function() {
};
exports.getRecentThreads = function(callback) {
Database.getRecentDiscussionThreads(callback);
};
exports.getRecentPosts = function(callback) {
Database.getRecentDiscussionPosts(callback);
};
exports.getDiscussionForums = function(callback) {
Database.getDiscussionForums(callback);
};
exports.createDiscussionForum = function(title, callback) {
Database.createDiscussionForum(title, callback);
};
exports.setDiscussionForumTitle = function(id, title, callback) {
Database.setDiscussionForumTitle(id, title, callback);
};
exports.deleteDiscussionForum = function(id, callback) {
Database.deleteDiscussionForum(id, callback);
};