mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 08:20:36 +01:00
category debug path
This commit is contained in:
@@ -294,6 +294,15 @@ var express = require('express'),
|
|||||||
app.get('/api/:method/:id/:section?', api_method);
|
app.get('/api/:method/:id/:section?', api_method);
|
||||||
app.get('/api/:method/:id*', api_method);
|
app.get('/api/:method/:id*', api_method);
|
||||||
|
|
||||||
|
app.get('/cid/:cid', function(req, res) {
|
||||||
|
categories.getCategoryData(req.params.cid, function(data){
|
||||||
|
if(data)
|
||||||
|
res.send(data);
|
||||||
|
else
|
||||||
|
res.send("Category doesn't exist!");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
app.get('/tid/:tid', function(req, res) {
|
app.get('/tid/:tid', function(req, res) {
|
||||||
topics.getTopicData(req.params.tid, function(data){
|
topics.getTopicData(req.params.tid, function(data){
|
||||||
if(data)
|
if(data)
|
||||||
|
|||||||
Reference in New Issue
Block a user