chenjunkai 5 năm trước cách đây
mục cha
commit
f1d34147f6
2 tập tin đã thay đổi với 4 bổ sung1 xóa
  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'))