var express = require("express");
var router = express.Router();
var art_handler = require("../controllers/artcate");
router.get("/cates", art_handler.getArticleClassification);
module.exports = router;
var db = require("../utils/db");
exports.getArticleClassification = (req, res) => {
const sql = `select * from ev_article_cate where is_delete =0 order by id asc`;
db.query(sql, (err, results) => {
console.log("2", results);
if (err) return res.cc(err);
res.send({
status: 0,
message: "获取文章分类列表成功",
data: results,
});
});
};