Commit 48405aa5 authored by Kim, Subin's avatar Kim, Subin
Browse files

search 서버연결

parent b85447e7
...@@ -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
} }
......
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