1 | # -*- coding: utf-8 -*-␊ |
2 | """␊ |
3 | Copyright 2015 Grégory Soutadé␊ |
4 | ␊ |
5 | This file is part of Dénote.␊ |
6 | ␊ |
7 | Dénote is free software: you can redistribute it and/or modify␊ |
8 | it under the terms of the GNU General Public License as published by␊ |
9 | the Free Software Foundation, either version 3 of the License, or␊ |
10 | (at your option) any later version.␊ |
11 | ␊ |
12 | Dénote is distributed in the hope that it will be useful,␊ |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of␊ |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the␊ |
15 | GNU General Public License for more details.␊ |
16 | ␊ |
17 | You should have received a copy of the GNU General Public License␊ |
18 | along with Dénote. If not, see <http://www.gnu.org/licenses/>.␊ |
19 | """␊ |
20 | ␊ |
21 | from django.conf.urls import patterns, include, url␊ |
22 | ␊ |
23 | urlpatterns = patterns('',␊ |
24 | url(r'^index[/]?$', 'denote.views.index', name='index'),␊ |
25 | url(r'^[/]?$', 'denote.views.index', name='index'),␊ |
26 | url(r'^disconnect?$', 'denote.views.disconnect', name='disconnect'),␊ |
27 | url(r'^user/add$','denote.views.new_user', name='add_user'),␊ |
28 | url(r'^user/edit$','denote.views.edit_user', name='edit_user'),␊ |
29 | url(r'^note/add$', 'denote.views.add_note', name='add_note'),␊ |
30 | url(r'^note/(\d+)$', 'denote.views.note', name='note'),␊ |
31 | url(r'^note/(\d+)/(\d+)$', 'denote.views.public_note', name='public_note'),␊ |
32 | url(r'^public_notes$', 'denote.views.public_notes', name='public_notes'),␊ |
33 | url(r'^category/edit/(\d)$','denote.views.edit_category', name='edit_category'),␊ |
34 | url(r'^preferences$', 'denote.views.preferences', name='preferences'),␊ |
35 | url(r'^search$', 'denote.views.search', name='search'),␊ |
36 | url(r'^generate_search_index$', 'denote.views.generate_search_index', name='generate_search_index'),␊ |
37 | )␊ |