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
a6ad79ae
Commit
a6ad79ae
authored
Jul 23, 2021
by
Kim, Subin
Browse files
TMDBUrl 삭제
parent
d76ed464
Changes
3
Show whitespace changes
Inline
Side-by-side
client/src/apis/movie.api.js
View file @
a6ad79ae
import
axios
from
"
axios
"
;
import
{
baseUrl
,
TMDBUrl
}
from
"
../utils/baseUrl
"
;
import
baseUrl
from
"
../utils/baseUrl
.js
"
;
const
getfromTM
=
async
(
category
)
=>
{
const
response
=
await
axios
.
get
(
`
${
baseUrl
}
/api/movie/showmovie/
${
category
}
`
)
...
...
client/src/components/BoxOffice/BoxOffice.js
View file @
a6ad79ae
import
axios
from
"
axios
"
import
{
baseUrl
}
from
'
../../utils/baseUrl
'
import
React
,
{
useState
,
useEffect
}
from
"
react
"
import
baseUrl
from
'
../../utils/baseUrl
'
import
{
useState
,
useEffect
}
from
"
react
"
import
styles
from
"
./box-office.module.scss
"
const
BoxOffice
=
()
=>
{
...
...
client/src/utils/baseUrl.js
View file @
a6ad79ae
...
...
@@ -4,6 +4,4 @@ const baseUrl = process.env.NODE_ENV === 'production'
?
`http://localhost:3001/
${
clientConfig
.
serverRoot
}
`
:
`http://localhost:3000`
const
TMDBUrl
=
"
https://api.themoviedb.org/3/movie
"
export
{
baseUrl
,
TMDBUrl
}
\ No newline at end of file
export
default
baseUrl
\ No newline at end of file
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