urls.py 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. from django.conf.urls import url
  2. from . import views
  3. from rest_framework_jwt.views import refresh_jwt_token
  4. app_name = 'bsdata'
  5. urlpatterns = [
  6. # 富文本编辑器
  7. url(r'^editorimg/$', views.EditorImgView.as_view(),name='EditorImg'), #查看富文本编辑器图片上传
  8. url(r'^editorcontens/$',views.EditorContensView.as_view({'get': 'list',"post":"create"},name='EditorContensViewList')), #列表
  9. url(r'^editorccontens/(?P<pk>\d+)/$',views.EditorContensView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"},name='EditorContensViewInfo')), #详情
  10. url(r'^bar/$', views.Bars.as_view(), name="Bar"), # 查询菜单栏
  11. # 前台菜单接口
  12. url(r'^navigation/$',views.NavigationView.as_view({'get': 'list',"post":"create"})),
  13. url(r'^navigation/(?P<pk>\d+)/$',views.NavigationView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
  14. # 公司接口
  15. url(r'^company/$',views.CompanyView.as_view({'get': 'list',"post":"create"})),
  16. url(r'^company/(?P<pk>\d+)/$',views.CompanyView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
  17. # 轮播
  18. url(r'^slideshow/$',views.SlideshowView.as_view({'get': 'list',"post":"create"})),
  19. url(r'^slideshow/(?P<pk>\d+)/$',views.SlideshowView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
  20. # 关于我们
  21. url(r'^hmwe/$',views.HmweView.as_view({'get': 'list',"post":"create"})),
  22. url(r'^hmwe/(?P<pk>\d+)/$',views.HmweView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
  23. # 技术与服务
  24. url(r'^hmart/$',views.HmartView.as_view({'get': 'list',"post":"create"})),
  25. url(r'^hmart/(?P<pk>\d+)/$',views.HmartView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
  26. # 标签描述
  27. url(r'^column/$',views.HmColumnView.as_view({'get': 'list',"post":"create"})),
  28. url(r'^column/(?P<pk>\d+)/$',views.HmColumnView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
  29. # 成功案例
  30. url(r'^hmcase/$',views.HmcaseView.as_view({'get': 'list',"post":"create"})),
  31. url(r'^hmcase/(?P<pk>\d+)/$',views.HmcaseView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
  32. # 团队介绍
  33. url(r'^hmgroup/$',views.HmgroupView.as_view({'get': 'list',"post":"create"})),
  34. url(r'^hmgroup/(?P<pk>\d+)/$',views.HmgroupView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
  35. # 联系我们
  36. url(r'^hmaddress/$',views.HmaddressView.as_view({'get': 'list',"post":"create"})),
  37. url(r'^hmaddress/(?P<pk>\d+)/$',views.HmaddressView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
  38. # 所有组件
  39. url(r'^wncomponent/$',views.WnComponentView.as_view({'get': 'list',"post":"create"})),
  40. url(r'^wncomponent/(?P<pk>\d+)/$',views.WnComponentView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
  41. # 使用中的组件
  42. url(r'^wncomponentkey/$',views.WnComponentKeyView.as_view({'get': 'list',"post":"create"})),
  43. url(r'^wncomponentkey/(?P<pk>\d+)/$',views.WnComponentKeyView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
  44. # 组件样式分组
  45. url(r'^wncomponentcssgroup/$',views.WnComponentCssGroupView.as_view({'get': 'list',"post":"create"})),
  46. url(r'^wncomponentcssgroup/(?P<pk>\d+)/$',views.WnComponentCssGroupView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
  47. # 组件样式
  48. url(r'^wncomponentcss/$',views.WnComponentCssView.as_view({'get': 'functionGet',"post":"create"})),
  49. url(r'^wncomponentcss/(?P<pk>\d+)/$',views.WnComponentCssView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
  50. ]