{"size": 379, "ext": "js", "max_stars_repo_path": "src/routes/advancedSearch.route.js", "max_stars_repo_name": "NgoTruongTuyen/FoodArt", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/routes/advancedSearch.route.js", "max_issues_repo_name": "NgoTruongTuyen/FoodArt", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/routes/advancedSearch.route.js", "max_forks_repo_name": "NgoTruongTuyen/FoodArt", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.2941176471, "max_line_length": 59, "alphanum_fraction": 0.6279683377}
import { Router } from "express";
import Category from "../components/dishes/categoryModel";

const router = Router();

router.get("/", async (req, res) => {
  // get categories
  const categories = await Category.find({}).lean();

  res.render("dishes/views/tim-kiem-nang-cao", {
    title: "Tìm kiếm nâng cao",
    categories,
  });
});

export default router;
