aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'cgi')
-rw-r--r--cgi/modapi.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cgi/modapi.py b/cgi/modapi.py
index a3465e1..c76cb8b 100644
--- a/cgi/modapi.py
+++ b/cgi/modapi.py
@@ -67,6 +67,10 @@ def api_process(self, path_split):
elif method == 'logs':
logs = FetchAll("SELECT * FROM `logs` ORDER BY `timestamp` DESC")
values['logs'] = logs
+ elif method == 'staffPosts':
+ posts = FetchAll(
+ "SELECT * FROM `news` WHERE type = '0' ORDER BY `timestamp` DESC")
+ values['posts'] = posts
elif method == 'login':
# testing
username = formdata.get('username')