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
butter-studio
Commits
48405aa5
Commit
48405aa5
authored
Jul 21, 2021
by
Kim, Subin
Browse files
search 서버연결
parent
b85447e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
client/src/apis/movie.api.js
View file @
48405aa5
...
@@ -26,13 +26,13 @@ const remove = async (movieId) => {
...
@@ -26,13 +26,13 @@ const remove = async (movieId) => {
return
data
return
data
}
}
const
search
=
async
(
title
)
=>
{
const
search
=
async
(
{
type
,
keyword
}
)
=>
{
const
payload
=
{
const
payload
=
{
params
:
{
params
:
{
title
:
title
keyword
}
}
}
}
const
{
data
}
=
await
axios
.
get
(
`
${
baseUrl
}
/api/movie/search`
,
payload
)
const
{
data
}
=
await
axios
.
get
(
`
${
baseUrl
}
/api/movie/search
/
${
type
}
`
,
payload
)
return
data
return
data
}
}
...
...
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