summaryrefslogtreecommitdiffstats
path: root/takahe
diff options
context:
space:
mode:
Diffstat (limited to 'takahe')
-rw-r--r--takahe/urls.py9
1 files changed, 5 insertions, 4 deletions
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("@<handle>/", identity.ViewIdentity.as_view()),
- path("@<handle>/actor/", identity.Actor.as_view()),
- path("@<handle>/actor/inbox/", identity.Inbox.as_view()),
+ path("@<handle>/actor/", activitypub.Actor.as_view()),
+ path("@<handle>/actor/inbox/", activitypub.Inbox.as_view()),
path("@<handle>/action/", identity.ActionIdentity.as_view()),
# Identity selection
path("@<handle>/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