from django.urls import path

from .views import (
    EmployeeCompaniesView,
    LoginView,
    LogoutView,
    MeView,
    SignupView,
    SwitchCompanyView,
    SwitchOutCompanyView,
)

urlpatterns = [
    path('signup/', SignupView.as_view(), name='auth-signup'),
    path('login/', LoginView.as_view(), name='auth-login'),
    path('logout/', LogoutView.as_view(), name='auth-logout'),
    path('me/', MeView.as_view(), name='auth-me'),
    path('company/switch/', SwitchCompanyView.as_view(), name='auth-company-switch'),
    path('company/switch-out/', SwitchOutCompanyView.as_view(), name='auth-company-switch-out'),
    path('employee/companies/', EmployeeCompaniesView.as_view(), name='auth-employee-companies'),
]
