updates to posts

This commit is contained in:
psychobunny
2013-04-28 20:07:42 +00:00
parent b0e510c862
commit 126f817f7d
5 changed files with 59 additions and 12 deletions

View File

@@ -65,6 +65,7 @@ var express = require('express'),
// need a proper way to combine these two routes together
app.get('/topics/:topic_id', function(req, res) {
global.modules.topics.generate_topic_body(function(topic_body) {
res.send(templates['header'] + topic_body + templates['footer']);
@@ -76,6 +77,8 @@ var express = require('express'),
}, req.params.topic_id)
});
app.get('/api/:method', function(req, res) {
switch(req.params.method) {
case 'home' :