from django.urls import path, include
from rest_framework.routers import DefaultRouter

from rest_api import views


router = DefaultRouter()
router.register('UserProfile', views.UserProfileViewSet)
router.register('Document', views.DocumentViewSet)
router.register('Repost', views.RepostViewSet)
router.register('Like', views.LikeViewSet)
router.register('Commentaire', views.CommentaireViewSet)

urlpatterns = [

    path('', include(router.urls)),
    path('login/', views.UserLoginApiView.as_view()),
    path("change-password/", views.ChangePasswordView.as_view()),
    path("logout/", views.Logout.as_view()),

]
