diff options
author | Andrew Godwin | 2022-11-05 14:17:27 -0600 |
---|---|---|
committer | Andrew Godwin | 2022-11-05 14:17:27 -0600 |
commit | d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7 (patch) | |
tree | dd356a933b8179a22e5da6e938acd96a175ac0d6 /takahe/urls.py | |
download | takahe-d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7.tar.gz takahe-d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7.tar.bz2 takahe-d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7.zip |
Initial commit (users and statuses)
Diffstat (limited to 'takahe/urls.py')
-rw-r--r-- | takahe/urls.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/takahe/urls.py b/takahe/urls.py new file mode 100644 index 0000000..422a182 --- /dev/null +++ b/takahe/urls.py @@ -0,0 +1,22 @@ +from django.contrib import admin +from django.urls import path + +from core import views as core +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()), + # Identity selection + 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()), + # Django admin + path("djadmin/", admin.site.urls), +] |