From 878f56b411279cd9865a7ec05f1d14c9f70f6187 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 12 Nov 2022 21:14:21 -0700 Subject: Post URIs and host-meta --- takahe/urls.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'takahe') diff --git a/takahe/urls.py b/takahe/urls.py index 764c8e9..672f7ce 100644 --- a/takahe/urls.py +++ b/takahe/urls.py @@ -3,7 +3,7 @@ from django.urls import path from core import views as core from stator import views as stator -from users.views import auth, identity +from users.views import activitypub, auth, identity urlpatterns = [ path("", core.homepage), @@ -12,15 +12,16 @@ urlpatterns = [ path("auth/logout/", auth.Logout.as_view()), # Identity views path("@/", identity.ViewIdentity.as_view()), - path("@/actor/", identity.Actor.as_view()), - path("@/actor/inbox/", identity.Inbox.as_view()), + path("@/actor/", activitypub.Actor.as_view()), + path("@/actor/inbox/", activitypub.Inbox.as_view()), path("@/action/", identity.ActionIdentity.as_view()), # Identity selection path("@/activate/", identity.ActivateIdentity.as_view()), path("identity/select/", identity.SelectIdentity.as_view()), path("identity/create/", identity.CreateIdentity.as_view()), # Well-known endpoints - path(".well-known/webfinger", identity.Webfinger.as_view()), + path(".well-known/webfinger", activitypub.Webfinger.as_view()), + path(".well-known/host-meta", activitypub.HostMeta.as_view()), # Task runner path(".stator/runner/", stator.RequestRunner.as_view()), # Django admin -- cgit v1.2.3