12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- from django.conf.urls import url
- from . import views
- from rest_framework_jwt.views import refresh_jwt_token
- app_name = 'bsdata'
- urlpatterns = [
- # 富文本编辑器
- url(r'^editorimg/$', views.EditorImgView.as_view(),name='EditorImg'), #查看富文本编辑器图片上传
- url(r'^editorcontens/$',views.EditorContensView.as_view({'get': 'list',"post":"create"},name='EditorContensViewList')), #列表
- url(r'^editorccontens/(?P<pk>\d+)/$',views.EditorContensView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"},name='EditorContensViewInfo')), #详情
- url(r'^bar/$', views.Bars.as_view(), name="Bar"), # 查询菜单栏
- # 前台菜单接口
- url(r'^navigation/$',views.NavigationView.as_view({'get': 'list',"post":"create"})),
- url(r'^navigation/(?P<pk>\d+)/$',views.NavigationView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
- # 公司接口
- url(r'^company/$',views.CompanyView.as_view({'get': 'list',"post":"create"})),
- url(r'^company/(?P<pk>\d+)/$',views.CompanyView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
- # 轮播
- url(r'^slideshow/$',views.SlideshowView.as_view({'get': 'list',"post":"create"})),
- url(r'^slideshow/(?P<pk>\d+)/$',views.SlideshowView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
- # 关于我们
- url(r'^hmwe/$',views.HmweView.as_view({'get': 'list',"post":"create"})),
- url(r'^hmwe/(?P<pk>\d+)/$',views.HmweView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
- # 技术与服务
- url(r'^hmart/$',views.HmartView.as_view({'get': 'list',"post":"create"})),
- url(r'^hmart/(?P<pk>\d+)/$',views.HmartView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
- # 标签描述
- url(r'^column/$',views.HmColumnView.as_view({'get': 'list',"post":"create"})),
- url(r'^column/(?P<pk>\d+)/$',views.HmColumnView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
- # 成功案例
- url(r'^hmcase/$',views.HmcaseView.as_view({'get': 'list',"post":"create"})),
- url(r'^hmcase/(?P<pk>\d+)/$',views.HmcaseView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
- # 团队介绍
- url(r'^hmgroup/$',views.HmgroupView.as_view({'get': 'list',"post":"create"})),
- url(r'^hmgroup/(?P<pk>\d+)/$',views.HmgroupView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
- # 联系我们
- url(r'^hmaddress/$',views.HmaddressView.as_view({'get': 'list',"post":"create"})),
- url(r'^hmaddress/(?P<pk>\d+)/$',views.HmaddressView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
- # 所有组件
- url(r'^wncomponent/$',views.WnComponentView.as_view({'get': 'list',"post":"create"})),
- url(r'^wncomponent/(?P<pk>\d+)/$',views.WnComponentView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
- # 使用中的组件
- url(r'^wncomponentkey/$',views.WnComponentKeyView.as_view({'get': 'list',"post":"create"})),
- url(r'^wncomponentkey/(?P<pk>\d+)/$',views.WnComponentKeyView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
- # 组件样式分组
- url(r'^wncomponentcssgroup/$',views.WnComponentCssGroupView.as_view({'get': 'list',"post":"create"})),
- url(r'^wncomponentcssgroup/(?P<pk>\d+)/$',views.WnComponentCssGroupView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
- # 组件样式
- url(r'^wncomponentcss/$',views.WnComponentCssView.as_view({'get': 'functionGet',"post":"create"})),
- url(r'^wncomponentcss/(?P<pk>\d+)/$',views.WnComponentCssView.as_view({'get': 'retrieve',"put":"update","delete":"destroy"})),
- ]
|