44 lines
2.4 KiB
Python
44 lines
2.4 KiB
Python
from django.urls import path
|
|
from .views import *
|
|
from .feeds import ReviewFeed
|
|
|
|
app_name = 'users'
|
|
urlpatterns = [
|
|
path('login/', login, name='login'),
|
|
path('register/', register, name='register'),
|
|
path('connect/', connect, name='connect'),
|
|
path('reconnect/', reconnect, name='reconnect'),
|
|
path('data/', data, name='data'),
|
|
path('data/import_goodreads', import_goodreads, name='import_goodreads'),
|
|
path('data/import_douban', import_douban, name='import_douban'),
|
|
path('data/export_reviews', export_reviews, name='export_reviews'),
|
|
path('data/export_marks', export_marks, name='export_marks'),
|
|
path('data/sync_mastodon', sync_mastodon, name='sync_mastodon'),
|
|
path('data/reset_visibility', reset_visibility, name='reset_visibility'),
|
|
path('data/clear_data', clear_data, name='clear_data'),
|
|
path('preferences/', preferences, name='preferences'),
|
|
path('logout/', logout, name='logout'),
|
|
path('layout/', set_layout, name='set_layout'),
|
|
path('OAuth2_login/', OAuth2_login, name='OAuth2_login'),
|
|
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'),
|
|
path('<str:id>/', home, name='home'),
|
|
path('<str:id>/followers/', followers, name='followers'),
|
|
path('<str:id>/following/', following, name='following'),
|
|
path('<str:id>/tags/', tag_list, name='tag_list'),
|
|
path('<str:id>/collections/', collection_list, name='collection_list'),
|
|
path('<str:id>/collections/marked/', marked_collection_list, name='marked_collection_list'),
|
|
path('<str:id>/book/<str:status>/', book_list, name='book_list'),
|
|
path('<str:id>/movie/<str:status>/', movie_list, name='movie_list'),
|
|
path('<str:id>/music/<str:status>/', music_list, name='music_list'),
|
|
path('<str:id>/game/<str:status>/', game_list, name='game_list'),
|
|
path('<str:id>/feed/reviews/', ReviewFeed(), name='review_feed'),
|
|
path('report/', report, name='report'),
|
|
path('manage_report/', manage_report, name='manage_report'),
|
|
]
|