summaryrefslogtreecommitdiffstats
path: root/takahe/urls.py
blob: f8bff07d92b49c9d3a0766c5b471469755ea27c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from django.contrib import admin
from django.urls import path

from core import views as core
from miniq import views as miniq
from users.views import auth, identity

urlpatterns = [
    path("", core.homepage),
    # Authentication
    path("auth/login/", auth.Login.as_view()),
    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()),
    # 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()),
    # Task runner
    path(".queue/process/", miniq.QueueProcessor.as_view()),
    # Django admin
    path("djadmin/", admin.site.urls),
]