2016-08-31 17:14:31 +02:00
|
|
|
from django.conf.urls import url
|
2016-09-11 22:11:28 +02:00
|
|
|
from django.views.generic import TemplateView
|
2016-08-31 17:14:31 +02:00
|
|
|
|
2016-10-04 14:19:55 +02:00
|
|
|
from c3nav.editor.views import edit_feature, finalize, oauth_callback
|
2016-09-23 15:23:02 +02:00
|
|
|
|
2016-08-31 17:14:31 +02:00
|
|
|
urlpatterns = [
|
2016-09-23 15:23:02 +02:00
|
|
|
url(r'^$', TemplateView.as_view(template_name='editor/map.html'), name='editor.index'),
|
2016-10-04 13:28:09 +02:00
|
|
|
url(r'^features/(?P<feature_type>[^/]+)/add/$', edit_feature, name='editor.feature.add'),
|
2016-10-13 15:55:15 +02:00
|
|
|
url(r'^features/(?P<feature_type>[^/]+)/edit/(?P<name>[^/]+)/$', edit_feature, name='editor.feature.edit'),
|
2016-09-29 16:33:45 +02:00
|
|
|
url(r'^finalize/$', finalize, name='editor.finalize'),
|
2016-10-04 14:19:55 +02:00
|
|
|
url(r'^oauth/(?P<hoster>[^/]+)/callback$', oauth_callback, name='editor.oauth.callback')
|
2016-08-31 17:14:31 +02:00
|
|
|
]
|