summaryrefslogtreecommitdiffstats
path: root/takahe
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-11 11:22:06 -0700
committerAndrew Godwin2022-12-12 11:56:49 -0700
commitfc8a21fc5c6809ea115092eeec57e09e984cdd76 (patch)
tree9ca40c9d9b192040875b9442c965e855df3bd052 /takahe
parent3e062aed360ca54c26733b175d00d0d4671f3591 (diff)
downloadtakahe-fc8a21fc5c6809ea115092eeec57e09e984cdd76.tar.gz
takahe-fc8a21fc5c6809ea115092eeec57e09e984cdd76.tar.bz2
takahe-fc8a21fc5c6809ea115092eeec57e09e984cdd76.zip
More API read coverage
Diffstat (limited to 'takahe')
-rw-r--r--takahe/urls.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/takahe/urls.py b/takahe/urls.py
index 57af7a7..e8aa359 100644
--- a/takahe/urls.py
+++ b/takahe/urls.py
@@ -4,7 +4,7 @@ from django.urls import path, re_path
from django.views.static import serve
from activities.views import compose, explore, follows, posts, search, timelines
-from api.views import api, oauth
+from api.views import api_router, oauth
from core import views as core
from mediaproxy import views as mediaproxy
from stator import views as stator
@@ -203,7 +203,7 @@ urlpatterns = [
path("actor/inbox/", activitypub.Inbox.as_view()),
path("inbox/", activitypub.Inbox.as_view(), name="shared_inbox"),
# API/Oauth
- path("api/", api.urls),
+ path("api/", api_router.urls),
path("oauth/authorize", oauth.AuthorizationView.as_view()),
path("oauth/token", oauth.TokenView.as_view()),
path("oauth/revoke_token", oauth.RevokeTokenView.as_view()),