const dbManager = require("../../data/db/database_manager");
const express = require("express");
const router = express.Router();
const createError = require('http-errors');

router.get("/", function (req, res, next) {
    dbManager.getData('blog', 'all', 20, function (result, error) {
        if (error) {
            next(createError(404));
        } else {
            res.render('index', {data: JSON.stringify(result)});
        }
    });
});

module.exports = router;
@@ -397,30 +397,14 @@
 ta: 
-JSON.stringify(
 result
-)
 %7D);%0A

stringify test