I am currently creating a movie application and I am confused as to how I should set my fetch up to make a delete request. The way my app works is that the user can create an account, and create movie postings of their favorite movies and they are able to view all the movies that have been created by all users. I want the user to have the ability to delete their own movie posts when they are logged in. I am using react on the front end and rails on the back end

If I use this link...
<http://localhost:3000/users/>${this.state.current\_user\_id}/movies
the current user logged in will be able to view all of their movies that they created. The current\_user\_id is for the current user that is logged in.

```
 handleMovieDelete = (movie) => {

        if(this.state.current_user_id){       
   fetch(`http://localhost:3000/users/
   ${this.state.current_user_id}/movies/${movie.id}`, {

         method: 'DELETE'
        })
      .then(res => res.json())
.then(() => {
     this.setState({
         movies: this.state.movies.filter(a_movie => movie.id !==     
         a_movie.id)
      })
    })
  } 
 }

```

I tried going to <http://localhost:3000/users/>
 ${this.state.current\_user\_id}/movies/${movie.id} in the browser with the movie id attached at the end and it showed in the rails that there is no route specified, So I know I need to probably do something for the routes but I am not sure how to go about it...