From 9c5ddfeedd7cf23f41bcd942199060e7730d3f09 Mon Sep 17 00:00:00 2001 From: corriestoddard Date: Fri, 22 Nov 2024 12:43:05 -0800 Subject: [PATCH] Remove the power to create and update --- mediabridge-frontend/src/api/movie.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/mediabridge-frontend/src/api/movie.js b/mediabridge-frontend/src/api/movie.js index 0c52315..d2b2221 100644 --- a/mediabridge-frontend/src/api/movie.js +++ b/mediabridge-frontend/src/api/movie.js @@ -11,13 +11,3 @@ export const getMovies = async () => { const response = await axios.get(`${API_ENDPOINT}/movies`); return response.data; }; - -export const createMovie = async (movie) => { - const response = await axios.post(`${API_ENDPOINT}/movies`, movie); - return response.data; -}; - -export const updateMovie = async (id, movie) => { - const response = await axios.put(`${API_ENDPOINT}/movies/${id}`, movie); - return response.data; -};