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-09-26 13:32:05 +02:00
|
|
|
from c3nav.editor.views import add_feature, edit_feature
|
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-09-26 13:32:05 +02:00
|
|
|
url(r'^features/(?P<feature_type>[^/]+)/add/$', add_feature, name='editor.feature.add'),
|
|
|
|
url(r'^features/edit/(?P<name>[^/]+)/$', edit_feature, name='editor.feature.edit')
|
2016-08-31 17:14:31 +02:00
|
|
|
]
|