X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/a6767b2d034dcf53d6e88b3e0b6eadfebc5adab1..9b533fdbfd08bd764744ae3a0d4717c87b61cf18:/src/apiclient/urls.py diff --git a/src/apiclient/urls.py b/src/apiclient/urls.py index 580a2c1b..53178636 100644 --- a/src/apiclient/urls.py +++ b/src/apiclient/urls.py @@ -1,13 +1,14 @@ # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # -from django.conf.urls import url +from django.urls import path from . import views urlpatterns = [ - url(r'^oauth/$', views.oauth, name='apiclient_oauth'), - url(r'^oauth_callback/$', views.oauth_callback, name='apiclient_oauth_callback'), - url(r'^oauth-beta/$', views.oauth, kwargs={'beta': True}, name='apiclient_beta_oauth'), - url(r'^oauth_callback-beta/$', views.oauth_callback, kwargs={'beta': True}, name='apiclient_beta_callback'), + path('oauth/', views.oauth, name='apiclient_oauth'), + path('oauth_callback/', views.oauth_callback, name='apiclient_oauth_callback'), + path('oauth-beta/', views.oauth, kwargs={'beta': True}, name='apiclient_beta_oauth'), + path('oauth_callback-beta/', views.oauth_callback, kwargs={'beta': True}, name='apiclient_beta_callback'), + path('disconnect', views.disconnect, name='apiclient_disconnect'), ]