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

search 서버연결

parent b85447e7
......@@ -26,13 +26,13 @@ const remove = async (movieId) => {
return data
}
const search = async (title) => {
const search = async ({ type, keyword }) => {
const payload = {
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
}
......
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