2020-02-18 20:30:26 +00:00
|
|
|
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
|
2019-08-11 14:22:52 +00:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
from django.urls import path
|
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
app_name = 'member'
|
|
|
|
urlpatterns = [
|
2020-02-18 20:14:29 +00:00
|
|
|
path('signup/', views.UserCreateView.as_view(), name="signup"),
|
|
|
|
path('club/', views.ClubListView.as_view(), name="club_list"),
|
|
|
|
path('club/<int:pk>/', views.ClubDetailView.as_view(), name="club_detail"),
|
|
|
|
path('club/<int:pk>/add_member/', views.ClubAddMemberView.as_view(), name="club_add_member"),
|
|
|
|
path('club/create/', views.ClubCreateView.as_view(), name="club_create"),
|
2020-03-25 15:11:44 +00:00
|
|
|
path('club/<int:pk>/update', views.ClubUpdateView.as_view(), name="club_update"),
|
|
|
|
path('club/<int:pk>/update_pic', views.ClubPictureUpdateView.as_view(), name="club_update_pic"),
|
2020-02-18 20:14:29 +00:00
|
|
|
path('user/', views.UserListView.as_view(), name="user_list"),
|
|
|
|
path('user/<int:pk>', views.UserDetailView.as_view(), name="user_detail"),
|
|
|
|
path('user/<int:pk>/update', views.UserUpdateView.as_view(), name="user_update_profile"),
|
2020-03-04 15:34:12 +00:00
|
|
|
path('user/<int:pk>/update_pic', views.ProfilePictureUpdateView.as_view(), name="user_update_pic"),
|
2020-02-28 12:37:31 +00:00
|
|
|
path('user/<int:pk>/aliases', views.AliasView.as_view(), name="user_alias"),
|
2020-02-28 12:52:15 +00:00
|
|
|
path('user/aliases/delete/<int:pk>', views.DeleteAliasView.as_view(), name="user_alias_delete"),
|
2020-02-17 20:32:08 +00:00
|
|
|
path('manage-auth-token/', views.ManageAuthTokens.as_view(), name='auth_token'),
|
2020-02-08 20:40:32 +00:00
|
|
|
# API for the user autocompleter
|
2020-02-18 20:14:29 +00:00
|
|
|
path('user/user-autocomplete', views.UserAutocomplete.as_view(), name="user_autocomplete"),
|
2019-08-11 14:22:52 +00:00
|
|
|
]
|