chenjunkai 5 年之前
父节点
当前提交
f1d34147f6
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 3 0
      azoauth/urls.py
  2. 1 1
      controller/index.py

+ 3 - 0
azoauth/urls.py

@@ -21,4 +21,7 @@ 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()),
 ]

+ 1 - 1
controller/index.py

@@ -114,7 +114,7 @@ class oa2TokenView(TemplateView):
         return response.json(0, res=res_json)
 
 
-class oa2TokenView(TemplateView):
+class oa2RtspStartView(TemplateView):
     def post(self, request, *args, **kwargs):
         request.encoding = 'utf-8'
         request_dict = json.loads(request.body.decode('utf-8'))