mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
updates to posts
This commit is contained in:
@@ -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' :
|
||||
|
||||
Reference in New Issue
Block a user