urls.py 658 B

1234567891011121314151617181920
  1. # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug
  2. # Copyright: (c) <spug.dev@gmail.com>
  3. # Released under the AGPL-3.0 License.
  4. from django.urls import path
  5. from apps.host.views import *
  6. from apps.host.group import GroupView
  7. from apps.host.extend import ExtendView
  8. from apps.host.add import get_regions, cloud_import
  9. urlpatterns = [
  10. path('', HostView.as_view()),
  11. path('extend/', ExtendView.as_view()),
  12. path('group/', GroupView.as_view()),
  13. path('import/', post_import),
  14. path('import/cloud/', cloud_import),
  15. path('import/region/', get_regions),
  16. path('parse/', post_parse),
  17. path('valid/', batch_valid),
  18. ]