Commit a6ad79ae authored by Kim, Subin's avatar Kim, Subin
Browse files

TMDBUrl 삭제

parent d76ed464
import axios from "axios"; import axios from "axios";
import { baseUrl, TMDBUrl } from "../utils/baseUrl"; import baseUrl from "../utils/baseUrl.js";
const getfromTM = async (category) => { const getfromTM = async (category) => {
const response = await axios.get(`${baseUrl}/api/movie/showmovie/${category}`) const response = await axios.get(`${baseUrl}/api/movie/showmovie/${category}`)
......
import axios from "axios" import axios from "axios"
import { baseUrl } from '../../utils/baseUrl' import baseUrl from '../../utils/baseUrl'
import React, { useState, useEffect } from "react" import { useState, useEffect } from "react"
import styles from "./box-office.module.scss" import styles from "./box-office.module.scss"
const BoxOffice = () => { const BoxOffice = () => {
......
...@@ -4,6 +4,4 @@ const baseUrl = process.env.NODE_ENV === 'production' ...@@ -4,6 +4,4 @@ const baseUrl = process.env.NODE_ENV === 'production'
? `http://localhost:3001/${clientConfig.serverRoot}` ? `http://localhost:3001/${clientConfig.serverRoot}`
: `http://localhost:3000` : `http://localhost:3000`
const TMDBUrl = "https://api.themoviedb.org/3/movie" export default baseUrl
\ No newline at end of file
export { baseUrl, TMDBUrl }
\ No newline at end of file
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