12345678910111213141516171819202122232425262728293031323334353637 |
- """azoauth URL Configuration
- The `urlpatterns` list routes URLs to views. For more information please see:
- https://docs.djangoproject.com/en/2.1/topics/http/urls/
- Examples:
- Function views
- 1. Add an import: from my_app import views
- 2. Add a URL to urlpatterns: path('', views.home, name='home')
- Class-based views
- 1. Add an import: from other_app.views import Home
- 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
- Including another URLconf
- 1. Import the include() function: from django.urls import include, path
- 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
- """
- from django.contrib import admin
- from django.urls import path
- from controller import index
- urlpatterns = [
- path('admin/', admin.site.urls),
- path('oa2/auth', index.authView.as_view()),
- path('oa2/login', index.loginHandleView.as_view()),
- path('oa2/token', index.oa2TokenView.as_view()),
- path('oa2/rtspStart', index.oa2RtspStartView.as_view()),
- path('oa2/discoverydevice', index.oa2DiscoveryDevice.as_view()),
- #新增停流
- path('oa2/stoprtsp', index.testRunSendStop),
- #新增设备推流测试
- path('oa2/runstream', index.testRunStream),
- #测试服务器是否正常接口
- path('oa2/test', index.test),
- #压测负载均衡接口
- path('oa2/loadserver', index.loadBalancingServer),
- ]
|