def delete(mov_id):
     print('***** MOVIE DELETE *****')
     movie = MovieDao.find_by_id(mov_id)  # Primary Key로 삭제하려는 리뷰의 Row를 불러옴.
     try:
         MovieDao.delete_movie(movie.mov_id)  # 해당 리뷰를 데이터베이스에서 삭제
         return {'code': 0, 'message': 'SUCCESS'}, 200
     except:
         return {'message': 'An error occured deleting the movie'}, 500
    def post():
        print('*****')
        parser = reqparse.RequestParser()
        parser.add_argument('mov_id', type=str, required=True, help='This field should be a movieid')     
        args = parser.parse_args()
        print('*********')
        print(f'{args}')
        print('*********')
        movieid = args['mov_id']
        print(movieid)

        try:
            MovieDao.delete_movie(movieid)
            return{'code':0, 'message':'SUCCESS'}, 200
        except:
            return {'message':'An error occured registering the movie'}, 500