from rest_framework import routers
from FiNote_API.v1.user_views import *
from FiNote_API.v1.movie_views import *

router = routers.DefaultRouter()
router.register(r'user', CreateUserViewSet, base_name='create-user')
router.register(r'user/update/password', UpdatePasswordViewSet, base_name='update-password')
router.register(r'user/update/email', UpdateEmailViewSet, base_name='update-email')
router.register(r'user/update/img', UpdateProfileImgViewSet, base_name='update-profile-img')


router.register(r'movie', AddMovieViewSet, base_name='add-movie')
router.register(r'movie/update/dvdfav', UpdateDVDFAVViewSet, base_name='update-dvdfav')
router.register(r'movie/update/onomatopoeia', UpdateOnomatopoeiaViewSet, base_name='update-onomatopoeia')
router.register(r'movie/delete', DeleteMovieViewSet, 'delete-movie')
router.register(r'movie/recently', GetRecentlyMovieViewSet, 'get-recently-movie')
router.register(r'movie/byage', GetMovieByAgeViewSet, 'get-movie-by-age')
router.register(r'movie/onomatopoeia', GetMovieOnomatopoeiaViewSet, 'get-movie-onomatopoeia')
router.register(r'movie/onomatopoeia/contain', GetMovieOnomatopoeiaContainViewSet, 'get-movie-onomatopoeia-contain')
router.register(r'movie/search/titles', GetSearchMovieTitleViewSet, 'get-movie-title')
router.register(r'movie/search/origin', GetOriginalTitleViewSet, 'get-movie-origin-title')


router.register(r'movies', GetMoviesViewSet, base_name='get-movies')




# router.register(r'v1/get_onomatopoeia_count_by_movie_id', GetOnomatopoeiaCountByMovieIDViewSet, 'get_onomatopoeia_count_by_movie_id')
from rest_framework import routers
from FiNote_API.v1.user_views import *
from FiNote_API.v1.movie_views import *

router = routers.DefaultRouter()
router.register(r'user', CreateUserViewSet, base_name='create-user')

router.register(r'user/update/password', UpdatePasswordViewSet, base_name='update-password')
router.register(r'user/update/email', UpdateEmailViewSet, base_name='update-email')
router.register(r'user/update/img', UpdateProfileImgViewSet, base_name='update-profile-img')


router.register(r'movie', AddMovieViewSet, base_name='add-movie')

router.register(r'movie/update/dvdfav', UpdateDVDFAVViewSet, base_name='update-dvdfav')
router.register(r'movie/update/onomatopoeia', UpdateOnomatopoeiaViewSet, base_name='update-onomatopoeia')
router.register(r'movie/delete', DeleteMovieViewSet, 'delete-movie')

router.register(r'movie/recently', GetRecentlyMovieViewSet, 'get-recently-movie')
router.register(r'movie/byage', GetMovieByAgeViewSet, 'get-movie-by-age')
router.register(r'movie/onomatopoeia', GetMovieOnomatopoeiaViewSet, 'get-movie-onomatopoeia')
router.register(r'movie/onomatopoeia/contain', GetMovieOnomatopoeiaContainViewSet, 'get-movie-onomatopoeia-contain')

router.register(r'movie/search/titles', GetSearchMovieTitleViewSet, 'get-movie-title')
router.register(r'movie/search/origin', GetOriginalTitleViewSet, 'get-movie-origin-title')


router.register(r'movies', GetMoviesViewSet, base_name='get-movies')




# router.register(r'v1/get_onomatopoeia_count_by_movie_id', GetOnomatopoeiaCountByMovieIDViewSet, 'get_onomatopoeia_count_by_movie_id')
insert new line