mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 07:47:58 +02:00
test: get rid of debug test
This commit is contained in:
@@ -10,14 +10,7 @@ module.exports = function (app) {
|
||||
const router = express.Router();
|
||||
|
||||
router.get('/test', async (req, res) => {
|
||||
// res.redirect(404);
|
||||
const request = require('../request');
|
||||
try {
|
||||
const { body: csv } = await request.get('https://example.org/blocklist');
|
||||
res.json({ csv });
|
||||
} catch (err) {
|
||||
res.status(500).json({ error: err.message });
|
||||
}
|
||||
res.redirect(404);
|
||||
});
|
||||
|
||||
// Redoc
|
||||
|
||||
Reference in New Issue
Block a user