Skip to content

Commit

Permalink
Remove the power to create and update
Browse files Browse the repository at this point in the history
  • Loading branch information
cocomittens committed Nov 22, 2024
1 parent 6af298a commit 9c5ddfe
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions mediabridge-frontend/src/api/movie.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

0 comments on commit 9c5ddfe

Please sign in to comment.