2020-05-01 22:46:15 +08:00
|
|
|
from django.urls import path
|
2023-08-10 11:27:31 -04:00
|
|
|
|
2020-05-01 22:46:15 +08:00
|
|
|
from .views import *
|
|
|
|
|
2022-12-31 00:20:20 -05:00
|
|
|
app_name = "users"
|
2020-05-01 22:46:15 +08:00
|
|
|
urlpatterns = [
|
2023-07-05 14:36:50 -04:00
|
|
|
path("login", login, name="login"),
|
2023-07-04 17:21:17 -04:00
|
|
|
path("register", register, name="register"),
|
2023-08-13 18:00:10 -04:00
|
|
|
path("fetch_refresh", fetch_refresh, name="fetch_refresh"),
|
2023-07-04 17:21:17 -04:00
|
|
|
path("data", data, name="data"),
|
|
|
|
path("info", account_info, name="info"),
|
2023-08-22 17:13:52 +00:00
|
|
|
path("profile", account_profile, name="profile"),
|
2025-03-06 11:21:01 -05:00
|
|
|
path("task/<str:task_type>/status", user_task_status, name="user_task_status"),
|
2023-01-29 20:05:30 -05:00
|
|
|
path("data/import/status", data_import_status, name="import_status"),
|
|
|
|
path("data/import/goodreads", import_goodreads, name="import_goodreads"),
|
|
|
|
path("data/import/douban", import_douban, name="import_douban"),
|
2024-01-10 22:20:57 -05:00
|
|
|
path("data/import/letterboxd", import_letterboxd, name="import_letterboxd"),
|
2023-01-29 20:05:30 -05:00
|
|
|
path("data/import/opml", import_opml, name="import_opml"),
|
2025-03-03 22:30:08 -05:00
|
|
|
path("data/import/neodb", import_neodb, name="import_neodb"),
|
2023-01-29 20:05:30 -05:00
|
|
|
path("data/export/reviews", export_reviews, name="export_reviews"),
|
|
|
|
path("data/export/marks", export_marks, name="export_marks"),
|
2025-01-27 02:44:37 -05:00
|
|
|
path("data/export/csv", export_csv, name="export_csv"),
|
2025-01-28 21:38:02 -05:00
|
|
|
path("data/export/ndjson", export_ndjson, name="export_ndjson"),
|
2022-12-31 00:20:20 -05:00
|
|
|
path("data/sync_mastodon", sync_mastodon, name="sync_mastodon"),
|
2023-11-08 09:54:36 -05:00
|
|
|
path(
|
|
|
|
"data/sync_mastodon_preference",
|
|
|
|
sync_mastodon_preference,
|
|
|
|
name="sync_mastodon_preference",
|
|
|
|
),
|
2022-12-31 00:20:20 -05:00
|
|
|
path("data/clear_data", clear_data, name="clear_data"),
|
2023-07-04 17:21:17 -04:00
|
|
|
path("preferences", preferences, name="preferences"),
|
|
|
|
path("logout", logout, name="logout"),
|
|
|
|
path("layout", set_layout, name="set_layout"),
|
2023-07-07 02:02:48 -04:00
|
|
|
path("follow/<str:user_name>", follow, name="follow"),
|
|
|
|
path("unfollow/<str:user_name>", unfollow, name="unfollow"),
|
2023-08-22 17:13:52 +00:00
|
|
|
path(
|
|
|
|
"accept_follow_request/<str:user_name>",
|
|
|
|
accept_follow_request,
|
|
|
|
name="accept_follow_request",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"reject_follow_request/<str:user_name>",
|
|
|
|
reject_follow_request,
|
|
|
|
name="reject_follow_request",
|
|
|
|
),
|
2023-07-07 16:54:15 -04:00
|
|
|
path("mute/<str:user_name>", mute, name="mute"),
|
|
|
|
path("unmute/<str:user_name>", unmute, name="unmute"),
|
|
|
|
path("block/<str:user_name>", block, name="block"),
|
|
|
|
path("unblock/<str:user_name>", unblock, name="unblock"),
|
2023-05-20 11:01:18 -04:00
|
|
|
path(
|
|
|
|
"mark_announcements_read/",
|
|
|
|
mark_announcements_read,
|
|
|
|
name="mark_announcements_read",
|
|
|
|
),
|
2024-04-17 00:00:40 -04:00
|
|
|
path(
|
|
|
|
"announcements/",
|
|
|
|
announcements,
|
|
|
|
name="announcements",
|
|
|
|
),
|
2020-05-01 22:46:15 +08:00
|
|
|
]
|