urls.py 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/usr/bin/env python
  2. # Licensed to Cloudera, Inc. under one
  3. # or more contributor license agreements. See the NOTICE file
  4. # distributed with this work for additional information
  5. # regarding copyright ownership. Cloudera, Inc. licenses this file
  6. # to you under the Apache License, Version 2.0 (the
  7. # "License"); you may not use this file except in compliance
  8. # with the License. You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. from django.conf.urls import patterns, url
  18. urlpatterns = patterns('dashboard.views',
  19. url(r'^$', 'index', name='index'),
  20. url(r'^m$', 'index_m', name='index_m'),
  21. url(r'^save$', 'save', name='save'),
  22. url(r'^new_search', 'new_search', name='new_search'),
  23. url(r'^browse/(?P<name>[^/]+)/?', 'browse', name='browse'),
  24. url(r'^browse_m/(?P<name>[^/]+)/?', 'browse_m', name='browse_m'),
  25. # Admin
  26. url(r'^admin/collections$', 'admin_collections', name='admin_collections'),
  27. url(r'^admin/collection_delete$', 'admin_collection_delete', name='admin_collection_delete'),
  28. url(r'^admin/collection_copy$', 'admin_collection_copy', name='admin_collection_copy'),
  29. )
  30. urlpatterns += patterns('dashboard.api',
  31. url(r'^search$', 'search', name='search'),
  32. url(r'^suggest/$', 'query_suggest', name='query_suggest'),
  33. url(r'^index/fields/dynamic$', 'index_fields_dynamic', name='index_fields_dynamic'),
  34. url(r'^index/fields/nested_documents', 'nested_documents', name='nested_documents'),
  35. url(r'^template/new_facet$', 'new_facet', name='new_facet'),
  36. url(r'^get_document$', 'get_document', name='get_document'),
  37. url(r'^update_document$', 'update_document', name='update_document'),
  38. url(r'^get_range_facet$', 'get_range_facet', name='get_range_facet'),
  39. url(r'^download$', 'download', name='download'),
  40. url(r'^get_timeline$', 'get_timeline', name='get_timeline'),
  41. url(r'^get_collection$', 'get_collection', name='get_collection'),
  42. url(r'^get_collections$', 'get_collections', name='get_collections'),
  43. url(r'^get_stats$', 'get_stats', name='get_stats'),
  44. url(r'^get_terms$', 'get_terms', name='get_terms'),
  45. )