Commit 97417b55 authored by 박상호's avatar 박상호 🎼
Browse files

clg

parent 1ac8158f
...@@ -12,7 +12,7 @@ const getCategory = async (req, res) => { ...@@ -12,7 +12,7 @@ const getCategory = async (req, res) => {
} }
const getSubCategory = async (req, res) => { const getSubCategory = async (req, res) => {
console.log(req.params); console.log("req.params=", req.params);
const { sub } = req.params const { sub } = req.params
try { try {
const subcategory = await Category.findOne({}, { _id: 0}).select(`${sub}`) const subcategory = await Category.findOne({}, { _id: 0}).select(`${sub}`)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment