Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
shopping-mall
Commits
e776b57a
Commit
e776b57a
authored
Jan 25, 2021
by
kusang96
Browse files
sdas
parent
26f7898a
Changes
1
Show whitespace changes
Inline
Side-by-side
server/controllers/product.controller.js
View file @
e776b57a
...
...
@@ -51,7 +51,6 @@ const getAll = async (req, res) => {
}
const
getlist
=
(
req
,
res
)
=>
{
console
.
log
(
'
get list
'
)
try
{
res
.
json
(
req
.
productslist
)
}
catch
(
error
)
{
...
...
@@ -69,8 +68,9 @@ const subname = async (req, res) => {
}
const
categoryId
=
async
(
req
,
res
,
next
,
category
)
=>
{
const
{
search
}
=
req
.
body
console
.
log
(
"
server search=
"
,
search
)
console
.
log
(
"
req=
"
,
req
.
body
)
// const { search } = req.body
// console.log("다시 실행 server search=", search)
try
{
const
productslist
=
await
Product
.
find
({
main_category
:
category
})
// if (!productslist) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment