From cc6d595eac2581f4912d21bdfcfbbc8e8b3d72ac Mon Sep 17 00:00:00 2001 From: pplokijuhyg <1162963624@qq.com> Date: Fri, 6 Dec 2019 11:37:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/router.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/router.js b/bin/router.js index 64f41b1..7cad897 100644 --- a/bin/router.js +++ b/bin/router.js @@ -6,11 +6,11 @@ function addMapping(router, mapping) { if (url.startsWith('GET ')) { var path = url.substring(4); router.get(path, mapping[url]); - console.log(`register URL mapping: GET ${path}`); + // console.log(`register URL mapping: GET ${path}`); } else if (url.startsWith('POST ')) { var path = url.substring(5); router.post(path, mapping[url]); - console.log(`register URL mapping: POST ${path}`); + // console.log(`register URL mapping: POST ${path}`); } else { console.log(`invalid URL: ${url}`); } @@ -32,7 +32,7 @@ function addControllers(router, controllers_dir) { }); for (var f of js_files) { - console.log(`process controller: ${f}...`); + // console.log(`process controller: ${f}...`); let mapping = require(dir + `/${controllers_dir}/` + f); addMapping(router, mapping); } -- 2.39.5 From 20fe4fde5d764fd443b40c84d592a9e3c7490063 Mon Sep 17 00:00:00 2001 From: pplokijuhyg <1162963624@qq.com> Date: Fri, 6 Dec 2019 11:39:48 +0800 Subject: [PATCH 2/2] md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a66ce6..1da51cb 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # blog-server -####目录结构 +#### 目录结构 - bin 基础文件存放 ~~~ mongobd.js 链接mongodb基础 和 对于mongodb操作封装 -- 2.39.5