aboutsummaryrefslogtreecommitdiff
path: root/glifestream/usettings/urls.py
blob: e449a5ed90b049adb815f47dca65d79a40899077 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#  gLifestream Copyright (C) 2010, 2013 Wojciech Polak
#
#  This program is free software; you can redistribute it and/or modify it
#  under the terms of the GNU General Public License as published by the
#  Free Software Foundation; either version 3 of the License, or (at your
#  option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License along
#  with this program.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls import url
from django.views.generic.base import RedirectView
from glifestream.usettings import views

urlpatterns = [
    url(r'^$', RedirectView.as_view(url='services', permanent=False), name='settings'),
    url(r'api/(?P<cmd>[a-z\-]+)$', views.api),
    url(r'services$', views.services, name='usettings-services'),
    url(r'services/import$', views.opml, {
        'cmd': 'import'}, 'opml-import'),
    url(r'services/export$', views.opml, {
        'cmd': 'export'}, 'opml-export'),
    url(r'lists$', views.lists, name='usettings-lists'),
    url(r'lists/(?P<list>[a-z0-9\-]+)$', views.lists, name='usettings-lists-slug'),
    url(r'pshb$', views.pshb, name='usettings-pshb'),
    url(r'openid$', views.openid, name='usettings-openid'),
    url(r'tools$', views.tools, name='usettings-tools'),
    url(r'oauth/(?P<id>[0-9]+)$', views.oauth, name='usettings-oauth'),
]

Return to:

Send suggestions and report system problems to the System administrator.