From 04663f3cbf5de7d024e0e4cba88aad650617b2c6 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Thu, 7 Jul 2022 15:04:53 +0800 Subject: [PATCH] =?UTF-8?q?/camera=20=E6=9A=82=E6=97=B6=E4=B8=8D=E9=89=B4?= =?UTF-8?q?=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/VideoAccess-VCMP/api/config.js | 4 +++- code/VideoAccess-VCMP/script/0.0.1/0_init_db.sql | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/code/VideoAccess-VCMP/api/config.js b/code/VideoAccess-VCMP/api/config.js index f23c796..5bcf54d 100644 --- a/code/VideoAccess-VCMP/api/config.js +++ b/code/VideoAccess-VCMP/api/config.js @@ -82,7 +82,9 @@ const product = { entry: require('./app').entry, opts: { dev, - exclude: [], // 不做认证的路由,也可以使用 exclude: ["*"] 跳过所有路由 + exclude: [ + { p: '/camera', o: 'GET' }, // 暂时滴 + ], // 不做认证的路由,也可以使用 exclude: ["*"] 跳过所有路由 redis: { host: IOTA_REDIS_SERVER_HOST, port: IOTA_REDIS_SERVER_PORT, diff --git a/code/VideoAccess-VCMP/script/0.0.1/0_init_db.sql b/code/VideoAccess-VCMP/script/0.0.1/0_init_db.sql index d8d335c..bc4c4c9 100644 --- a/code/VideoAccess-VCMP/script/0.0.1/0_init_db.sql +++ b/code/VideoAccess-VCMP/script/0.0.1/0_init_db.sql @@ -476,10 +476,6 @@ ALTER TABLE "public"."camera_remark" ADD CONSTRAINT "camera_remark_pk" PRIMARY K -- ---------------------------- ALTER TABLE "public"."gbCamera" ADD CONSTRAINT "gbCamera1_copy1_pkey" PRIMARY KEY ("id"); --- ---------------------------- --- Primary Key structure for table gbCamera1 --- ---------------------------- -ALTER TABLE "public"."gbCamera1" ADD CONSTRAINT "gbCamera_pkey" PRIMARY KEY ("id"); -- ---------------------------- -- Indexes structure for table nvr