from django.urls import path from rest_framework.authtoken.views import obtain_auth_token from . import views urlpatterns = [ path('games/', views.ListGamesAPIView.as_view(), name = 'ListGames'), path('game/', views.SingleGameAPIView, name = 'SingleGame'), path('game//take_part',views.GameTakePartAPIView, name = 'GameTakePartAPIView'), path('game//start', views.StartGameAPIView, name = 'StartGame'), path('game//close_check_point', views.CloseCheckPointAPIView, name = 'CloseCheckPoint'), path('game//join_team/',views.JoinTeamAPIView, name = 'JoinTeam'), path('register', views.UserRegisterAPIView, name = 'UserRegister'), path('login', obtain_auth_token, name = 'UserLogin'), path('logout', views.UserLogoutAPIView, name = 'UserLogout'), path('profile', views.ProfileInfoAPIView, name = 'ProfileInfo'), path('activate//', views.UserActivationAPIView, name = 'UserActivation'), path('reset_password_request', views.UserResetPasswordRequestAPIView, name = 'UserResetPasswordRequest'), path('reset_password//', views.UserResetPasswordAPIView, name = 'UserResetPassword'), ]