Bring prod and main into sync on urls

This commit is contained in:
Mouse Reeve 2022-01-30 06:43:50 -08:00
parent 8fc23ba184
commit 29a7c59d5f
1 changed files with 16 additions and 6 deletions

View File

@ -34,9 +34,11 @@ urlpatterns = [
TemplateView.as_view(template_name="robots.txt", content_type="text/plain"), TemplateView.as_view(template_name="robots.txt", content_type="text/plain"),
), ),
# federation endpoints # federation endpoints
re_path(r"^inbox/?$", views.Inbox.as_view()), re_path(r"^inbox/?$", views.Inbox.as_view(), name="inbox"),
re_path(rf"{LOCAL_USER_PATH}/inbox/?$", views.Inbox.as_view()), re_path(rf"{LOCAL_USER_PATH}/inbox/?$", views.Inbox.as_view(), name="user_inbox"),
re_path(rf"{LOCAL_USER_PATH}/outbox/?$", views.Outbox.as_view()), re_path(
rf"{LOCAL_USER_PATH}/outbox/?$", views.Outbox.as_view(), name="user_outbox"
),
re_path(r"^\.well-known/webfinger/?$", views.webfinger), re_path(r"^\.well-known/webfinger/?$", views.webfinger),
re_path(r"^\.well-known/nodeinfo/?$", views.nodeinfo_pointer), re_path(r"^\.well-known/nodeinfo/?$", views.nodeinfo_pointer),
re_path(r"^\.well-known/host-meta/?$", views.host_meta), re_path(r"^\.well-known/host-meta/?$", views.host_meta),
@ -46,9 +48,15 @@ urlpatterns = [
re_path(r"^opensearch.xml$", views.opensearch, name="opensearch"), re_path(r"^opensearch.xml$", views.opensearch, name="opensearch"),
re_path(r"^ostatus_subscribe/?$", views.ostatus_follow_request), re_path(r"^ostatus_subscribe/?$", views.ostatus_follow_request),
# polling updates # polling updates
re_path("^api/updates/notifications/?$", views.get_notification_count),
re_path( re_path(
"^api/updates/stream/(?P<stream>[a-z]+)/?$", views.get_unread_status_string "^api/updates/notifications/?$",
views.get_notification_count,
name="notification-updates",
),
re_path(
"^api/updates/stream/(?P<stream>[a-z]+)/?$",
views.get_unread_status_string,
name="stream-updates",
), ),
# authentication # authentication
re_path(r"^login/?$", views.Login.as_view(), name="login"), re_path(r"^login/?$", views.Login.as_view(), name="login"),
@ -149,7 +157,9 @@ urlpatterns = [
re_path( re_path(
r"^invite-request/?$", views.InviteRequest.as_view(), name="invite-request" r"^invite-request/?$", views.InviteRequest.as_view(), name="invite-request"
), ),
re_path(r"^invite/(?P<code>[A-Za-z0-9]+)/?$", views.Invite.as_view()), re_path(
r"^invite/(?P<code>[A-Za-z0-9]+)/?$", views.Invite.as_view(), name="invite"
),
re_path( re_path(
r"^settings/email-blocklist/?$", r"^settings/email-blocklist/?$",
views.EmailBlocklist.as_view(), views.EmailBlocklist.as_view(),