summaryrefslogtreecommitdiff
path: root/talerbank/app/urls.py
blob: d18f971b7f9b07bf3eb840be25d37afdc6475307 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#  This file is part of TALER
#  (C) 2014, 2015, 2016 INRIA
#
#  TALER is free software; you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation; either version 3, or
# (at your option) any later version.
#
#  TALER 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 TALER; see the file COPYING.  If not, see
# <http://www.gnu.org/licenses/>.
#
#  @author Marcello Stanisci

from django.conf.urls import include, url
from django.views.generic.base import RedirectView
from django.contrib.auth import views as auth_views
from . import views

urlpatterns = [
    url(r'^', include('talerbank.urls')),
    url(r'^$', RedirectView.as_view(pattern_name="profile"),
        name="index"),
    url(r'^favicon\.ico$', views.ignore),
    url(r'^admin/add/incoming$', views.add_incoming,
        name="add-incoming"),
    url(r'^login/$',
        auth_views.LoginView.as_view(
            template_name="login.html",
            authentication_form=views.TalerAuthenticationForm),
        name="login"),
    url(r'^logout/$', views.logout_view, name="logout"),
    url(r'^accounts/register/$', views.register, name="register"),
    url(r'^profile$', views.profile_page, name="profile"),
    url(r'^history$', views.serve_history, name="history"),
    url(r'^history-range$', views.serve_history_range, name="history-range"),
    url(r'^reject$', views.reject, name="reject"),
    url(r'^withdraw$', views.withdraw_nojs, name="withdraw-nojs"),
    url(r'^public-accounts$', views.serve_public_accounts,
        name="public-accounts"),
    url(r'^public-accounts/(?P<name>[a-zA-Z0-9]+)$',
        views.serve_public_accounts,
        name="public-accounts"),
    url(r'^public-accounts/(?P<name>[a-zA-Z0-9]+)/(?P<page>[0-9]+)$',
        views.serve_public_accounts,
        name="public-accounts"),
    url(r'^pin/question$', views.pin_tan_question,
        name="pin-question"),
    url(r'^pin/verify$', views.pin_tan_verify, name="pin-verify"),
    ]