Commit e776b57a authored by kusang96's avatar kusang96
Browse files

sdas

parent 26f7898a
...@@ -51,7 +51,6 @@ const getAll = async (req, res) => { ...@@ -51,7 +51,6 @@ const getAll = async (req, res) => {
} }
const getlist = (req, res) => { const getlist = (req, res) => {
console.log('get list')
try { try {
res.json(req.productslist) res.json(req.productslist)
} catch (error) { } catch (error) {
...@@ -69,8 +68,9 @@ const subname = async (req, res) => { ...@@ -69,8 +68,9 @@ const subname = async (req, res) => {
} }
const categoryId = async (req, res, next, category) => { const categoryId = async (req, res, next, category) => {
const { search } = req.body console.log("req=",req.body)
console.log("server search=", search) // const { search } = req.body
// console.log("다시 실행 server search=", search)
try { try {
const productslist = await Product.find({ main_category: category }) const productslist = await Product.find({ main_category: category })
// if (!productslist) { // if (!productslist) {
......
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