funkwhale/api/funkwhale_api/users/api_urls.py

12 wiersze
336 B
Python
Czysty Zwykły widok Historia

from django.conf.urls import url
from funkwhale_api.common import routers
from . import views
router = routers.OptionalSlashRouter()
2018-06-09 13:36:16 +00:00
router.register(r"users", views.UserViewSet, "users")
urlpatterns = [
url(r"^users/login/?$", views.login, name="login"),
url(r"^users/logout/?$", views.logout, name="logout"),
] + router.urls