|
|
@ -197,7 +197,7 @@ var express = require('express'),
|
|
|
|
app.get('/category/:category_id/:slug?', function(req, res) {
|
|
|
|
app.get('/category/:category_id/:slug?', function(req, res) {
|
|
|
|
var cid = req.params.category_id;
|
|
|
|
var cid = req.params.category_id;
|
|
|
|
|
|
|
|
|
|
|
|
if (cid.match(/^\d+\.rssgg$/)) {
|
|
|
|
if (cid.match(/^\d+\.rss$/)) {
|
|
|
|
fs.readFile('feeds/categories/' + cid, function (err, data) {
|
|
|
|
fs.readFile('feeds/categories/' + cid, function (err, data) {
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|
res.type('text').send(404, "Unable to locate an rss feed at this location.");
|
|
|
|
res.type('text').send(404, "Unable to locate an rss feed at this location.");
|
|
|
|