"""This module holds the api-related urls of the ``accounts`` app"""

from macrosurl import url

from . import views


urlpatterns = [
    url(
        r'^login$',
        views.do_login,
        name='login'
    ),
    url(
        r'^users$',
        views.users_list,
        name='users_list'
    ),
    url(
        r'^users/:user_uuid/session/:session_uuid$',
        views.user,
        name='user'
    ),
    url(
        r'^users/:user_uuid$',
        views.user,
        name='user'
    ),
    url(
        r'^v1.0/trainers$',
        views.TrainerList.as_view(),
        name='trainers-list'
    ),
    url(
        r'^v1.0/trainees$',
        views.TraineeList.as_view(),
        name='trainees-list'
    ),
    url(
        r'^v1.0/users$',
        views.UserList.as_view(),
        name='user-list'
    ),
    url(
        r'^v1.0/users/:user_uuid$',
        views.UserDetail.as_view(),
        name='user-detail'
    ),
    url(
        r'^v1.0/logout',
        views.LogoutView.as_view(),
        name='logout'
    ),
]
