Add urls for internal REST
from django.conf.urls import patterns, url
from hs_core import views
-urlpatterns = patterns('',
+urlpatterns = patterns(
+ '',
# resource API
url(r'^resource/types/$', views.resource_rest_api.ResourceTypes.as_view(),
@@ -169,7 +170,8 @@ urlpatterns = patterns('',
url(r'^_internal/group_membership/(?P<token>[-\w]+)/(?P<uidb36>[-\w]+)/(?P<membership_request_id>[0-9]+)/',
views.group_membership,
name='group_membership'),
- url(r'^_internal/get-user-or-group-data/(?P<user_or_group_id>[0-9]+)/(?P<is_group>[a-z]+)$', views.get_user_or_group_data, name='get_user_or_group_data'),
+ url(r'^_internal/get-user-or-group-data/(?P<user_or_group_id>[0-9]+)/(?P<is_group>[a-z]+)$',
+ views.get_user_or_group_data, name='get_user_or_group_data'),
url(r'^_internal/(?P<shortkey>[0-9a-f-]+)/publish/$', views.publish),
url(r'^_internal/create-resource/$', views.create_resource_select_resource_type),
url(r'^_internal/create-resource/do/$', views.create_resource, name='create_resource'),
@@ -189,6 +191,10 @@ urlpatterns = patterns('',
views.resource_folder_hierarchy.data_store_create_folder),
url(r'^_internal/data-store-move-or-rename/$',
views.resource_folder_hierarchy.data_store_file_or_folder_move_or_rename),
+ url(r'^_internal/data-store-move-to-folder/$',
+ views.resource_folder_hierarchy.data_store_move_to_folder),
+ url(r'^_internal/data-store-rename-file-or-folder/$',
+ views.resource_folder_hierarchy.data_store_rename_file_or_folder),
url(r'^_internal/data-store-delete-folder/$',
views.resource_folder_hierarchy.data_store_remove_folder),
)
