blob: 893514a6e20f1beb8c6994dcfab7effb16fb18b2 [file] [log] [blame]
lombardofr3218b2b2018-10-29 13:41:08 +01001# Copyright 2018 EveryUP Srl
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
lombardofre1ed7b22018-12-19 17:27:24 +010014
lombardofr3218b2b2018-10-29 13:41:08 +010015
16from django.conf.urls import url
17from descriptorhandler import views
18
19urlpatterns = [
lombardofr3218b2b2018-10-29 13:41:08 +010020 url(r'(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)(/$)', views.edit_descriptor, name='edit_descriptor'),
lombardofre428af72018-11-15 17:25:25 +010021 url(r'(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)/addElement/(?P<element_type>\w+)', views.addElement,
22 name='addElement'),
23 url(r'(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)/removeElement/(?P<element_type>\w+)', views.removeElement,
24 name='removeElement'),
25 url(r'(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)/updateElement/(?P<element_type>\w+)', views.updateElement,
26 name='updateElement'),
27 url(r'(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)/action/(?P<action_name>[-\w]+)', views.custom_action,
lombardofr3218b2b2018-10-29 13:41:08 +010028 name='custom_action'),
lombardofr3218b2b2018-10-29 13:41:08 +010029 url(r'composer$', views.open_composer, name='open_composer'),
30 url(r'availablenodes', views.get_available_nodes, name='get_available_nodes'),
31]