mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-06 02:59:55 +02:00
Added API to list and detail actors
This commit is contained in:
parent
bbc36201c8
commit
47209ee5ae
7 changed files with 174 additions and 2 deletions
|
@ -11,6 +11,9 @@ users_router = routers.SimpleRouter()
|
|||
users_router.register(r"users", views.ManageUserViewSet, "users")
|
||||
users_router.register(r"invitations", views.ManageInvitationViewSet, "invitations")
|
||||
|
||||
other_router = routers.SimpleRouter()
|
||||
other_router.register(r"accounts", views.ManageActorViewSet, "accounts")
|
||||
|
||||
urlpatterns = [
|
||||
url(
|
||||
r"^federation/",
|
||||
|
@ -18,4 +21,4 @@ urlpatterns = [
|
|||
),
|
||||
url(r"^library/", include((library_router.urls, "instance"), namespace="library")),
|
||||
url(r"^users/", include((users_router.urls, "instance"), namespace="users")),
|
||||
]
|
||||
] + other_router.urls
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue