2020-05-01 22:46:15 +08:00
|
|
|
from django.urls import path
|
|
|
|
from .views import *
|
|
|
|
|
|
|
|
app_name = 'users'
|
|
|
|
urlpatterns = [
|
|
|
|
path('login/', login, name='login'),
|
|
|
|
path('register/', register, name='register'),
|
2021-09-10 20:24:22 -04:00
|
|
|
path('connect/', connect, name='connect'),
|
2022-02-05 18:10:09 -05:00
|
|
|
path('reconnect/', reconnect, name='reconnect'),
|
2021-12-11 09:43:31 -05:00
|
|
|
path('data/', data, name='data'),
|
2022-04-04 01:24:16 -04:00
|
|
|
path('data/import_goodreads', import_goodreads, name='import_goodreads'),
|
2022-05-03 20:46:06 -04:00
|
|
|
path('data/import_douban', import_douban, name='import_douban'),
|
2021-12-11 09:43:31 -05:00
|
|
|
path('data/export_reviews', export_reviews, name='export_reviews'),
|
|
|
|
path('data/export_marks', export_marks, name='export_marks'),
|
2021-12-15 12:54:24 -05:00
|
|
|
path('data/sync_mastodon', sync_mastodon, name='sync_mastodon'),
|
2021-12-21 21:25:41 -05:00
|
|
|
path('data/reset_visibility', reset_visibility, name='reset_visibility'),
|
2021-12-21 23:34:36 -05:00
|
|
|
path('data/clear_data', clear_data, name='clear_data'),
|
2021-12-11 09:43:31 -05:00
|
|
|
path('preferences/', preferences, name='preferences'),
|
2020-05-01 22:46:15 +08:00
|
|
|
path('logout/', logout, name='logout'),
|
|
|
|
path('delete/', delete, name='delete'),
|
2021-02-17 15:08:16 +01:00
|
|
|
path('layout/', set_layout, name='set_layout'),
|
2020-05-01 22:46:15 +08:00
|
|
|
path('OAuth2_login/', OAuth2_login, name='OAuth2_login'),
|
2022-04-01 21:46:16 -04:00
|
|
|
path('<int:id>/', home_redirect, name='home_redirect'),
|
|
|
|
# path('<int:id>/followers/', followers, name='followers'),
|
|
|
|
# path('<int:id>/following/', following, name='following'),
|
|
|
|
# path('<int:id>/collections/', collection_list, name='collection_list'),
|
|
|
|
# path('<int:id>/book/<str:status>/', book_list, name='book_list'),
|
|
|
|
# path('<int:id>/movie/<str:status>/', movie_list, name='movie_list'),
|
|
|
|
# path('<int:id>/music/<str:status>/', music_list, name='music_list'),
|
|
|
|
# path('<int:id>/game/<str:status>/', game_list, name='game_list'),
|
2020-10-22 21:45:05 +02:00
|
|
|
path('<str:id>/', home, name='home'),
|
|
|
|
path('<str:id>/followers/', followers, name='followers'),
|
|
|
|
path('<str:id>/following/', following, name='following'),
|
2021-12-26 15:55:16 -05:00
|
|
|
path('<str:id>/collections/', collection_list, name='collection_list'),
|
2020-10-22 21:45:05 +02:00
|
|
|
path('<str:id>/book/<str:status>/', book_list, name='book_list'),
|
|
|
|
path('<str:id>/movie/<str:status>/', movie_list, name='movie_list'),
|
2021-12-15 22:31:18 -05:00
|
|
|
path('<str:id>/music/<str:status>/', music_list, name='music_list'),
|
|
|
|
path('<str:id>/game/<str:status>/', game_list, name='game_list'),
|
2020-05-05 23:50:48 +08:00
|
|
|
path('report/', report, name='report'),
|
|
|
|
path('manage_report/', manage_report, name='manage_report'),
|
2020-05-01 22:46:15 +08:00
|
|
|
]
|