X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..5dbd487fb7e64aa968da9c3fcbe8a0215d2b3298:/src/apiclient/urls.py diff --git a/src/apiclient/urls.py b/src/apiclient/urls.py old mode 100755 new mode 100644 index f623474e..53178636 --- a/src/apiclient/urls.py +++ b/src/apiclient/urls.py @@ -1,9 +1,14 @@ -# -*- coding: utf-8 -*- -from django.conf.urls import patterns, url +# 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.urls import path +from . import views -urlpatterns = patterns('apiclient.views', - url(r'^oauth/$', 'oauth', name='apiclient_oauth'), - url(r'^oauth_callback/$', 'oauth_callback', name='apiclient_oauth_callback'), - url(r'^oauth-beta/$', 'oauth', kwargs={'beta': True}, name='apiclient_beta_oauth'), - url(r'^oauth_callback-beta/$', 'oauth_callback', kwargs={'beta': True}, name='apiclient_beta_callback'), -) + +urlpatterns = [ + 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'), +]