2020-05-18 10:03:30 +00:00
|
|
|
from django.conf.urls import url
|
2019-07-02 12:31:47 +00:00
|
|
|
from funkwhale_api.common import routers
|
2017-06-23 21:00:42 +00:00
|
|
|
from . import views
|
|
|
|
|
2019-07-02 12:31:47 +00:00
|
|
|
router = routers.OptionalSlashRouter()
|
2018-06-09 13:36:16 +00:00
|
|
|
router.register(r"users", views.UserViewSet, "users")
|
2017-06-23 21:00:42 +00:00
|
|
|
|
2020-05-18 10:03:30 +00:00
|
|
|
urlpatterns = [
|
|
|
|
url(r"^users/login/?$", views.login, name="login"),
|
|
|
|
url(r"^users/logout/?$", views.logout, name="logout"),
|
|
|
|
] + router.urls
|