diff --git a/api/Agent.html b/api/Agent.html index 54ab59d2a2..2ad954ff24 100644 --- a/api/Agent.html +++ b/api/Agent.html @@ -1499,7 +1499,7 @@
Example

diff --git a/api/AgentWorkerLoader.html b/api/AgentWorkerLoader.html index f35ce9512b..3453fe11b6 100644 --- a/api/AgentWorkerLoader.html +++ b/api/AgentWorkerLoader.html @@ -263,7 +263,7 @@

loadConfig<
diff --git a/api/AppInfo.html b/api/AppInfo.html index a1ca10603e..bafdcf0fc3 100644 --- a/api/AppInfo.html +++ b/api/AppInfo.html @@ -634,7 +634,7 @@

scope
- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/AppWorkerLoader.html b/api/AppWorkerLoader.html index d0799d41e6..80f01dd006 100644 --- a/api/AppWorkerLoader.html +++ b/api/AppWorkerLoader.html @@ -349,7 +349,7 @@

loadConfig<
- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Application.html b/api/Application.html index ca7c8ad1d1..4281fdb345 100644 --- a/api/Application.html +++ b/api/Application.html @@ -2100,7 +2100,7 @@

Parameters:

- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/BaseContextLogger.html b/api/BaseContextLogger.html index f109844e3e..28be18bd6a 100644 --- a/api/BaseContextLogger.html +++ b/api/BaseContextLogger.html @@ -546,7 +546,7 @@

warn
- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Config.html b/api/Config.html index 6b4bb1a696..9a814745fd 100644 --- a/api/Config.html +++ b/api/Config.html @@ -4622,7 +4622,7 @@
Properties:

- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:46 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Context.html b/api/Context.html index 7906e28526..06f008e1f3 100644 --- a/api/Context.html +++ b/api/Context.html @@ -1937,7 +1937,7 @@
Parameters:

- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:46 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/ContextLoader.html b/api/ContextLoader.html index f633c30c73..dc2d2e710a 100644 --- a/api/ContextLoader.html +++ b/api/ContextLoader.html @@ -476,7 +476,7 @@

parse
- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:46 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Egg.html b/api/Egg.html index 90331c007d..561e493269 100644 --- a/api/Egg.html +++ b/api/Egg.html @@ -616,7 +616,7 @@

Subscript
- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:46 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/EggApplication.html b/api/EggApplication.html index 6b9e8221d5..0404c6acd4 100644 --- a/api/EggApplication.html +++ b/api/EggApplication.html @@ -2677,7 +2677,7 @@

Parameters:
Source:
@@ -2812,7 +2812,7 @@
Parameters:
Source:
@@ -2973,7 +2973,7 @@
Parameters:
Source:
@@ -3153,7 +3153,7 @@
Parameters:

- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:46 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/EggCore.html b/api/EggCore.html index 75dc58abdf..fe162b27b4 100644 --- a/api/EggCore.html +++ b/api/EggCore.html @@ -1501,7 +1501,7 @@
Parameters:
Source:
@@ -1631,7 +1631,7 @@
Parameters:
Source:
@@ -1787,7 +1787,7 @@
Parameters:
Source:
@@ -1962,7 +1962,7 @@
Parameters:

- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:46 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/EggLoader.html b/api/EggLoader.html index 1e9355495d..9d14d6bd49 100644 --- a/api/EggLoader.html +++ b/api/EggLoader.html @@ -2786,7 +2786,7 @@
Parameters:

- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:22 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:46 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/FileLoader.html b/api/FileLoader.html index 0d0f51800c..568c4a24b7 100644 --- a/api/FileLoader.html +++ b/api/FileLoader.html @@ -695,7 +695,7 @@

parse
- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:22 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:46 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Helper.html b/api/Helper.html index 9e3b696bee..26c4c491fd 100644 --- a/api/Helper.html +++ b/api/Helper.html @@ -508,7 +508,7 @@
Example

- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:22 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:46 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/I18n.html b/api/I18n.html index f876915df3..3531bf4e0d 100644 --- a/api/I18n.html +++ b/api/I18n.html @@ -259,7 +259,7 @@
Example

- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:22 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:46 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Messenger.html b/api/Messenger.html index e4b662ecc6..3769f974b0 100644 --- a/api/Messenger.html +++ b/api/Messenger.html @@ -1164,7 +1164,7 @@
Parameters:

- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:22 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:46 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Request.html b/api/Request.html index 2992b80342..535825cbfd 100644 --- a/api/Request.html +++ b/api/Request.html @@ -1246,7 +1246,7 @@
Parameters:

- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:22 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:46 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Response.html b/api/Response.html index bd0f741455..4394f7a477 100644 --- a/api/Response.html +++ b/api/Response.html @@ -243,7 +243,7 @@

realStatus<
- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:22 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:46 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Router.html b/api/Router.html index 0edad75dd4..834a43f41a 100644 --- a/api/Router.html +++ b/api/Router.html @@ -849,7 +849,7 @@

Example

- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:22 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:46 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/app_extend_context.js.html b/api/app_extend_context.js.html index 4dfb29dda0..9969d1a49d 100644 --- a/api/app_extend_context.js.html +++ b/api/app_extend_context.js.html @@ -310,7 +310,7 @@

app/extend/context.js


- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/app_extend_helper.js.html b/api/app_extend_helper.js.html index b5b39abc1f..1b2a77ed7c 100644 --- a/api/app_extend_helper.js.html +++ b/api/app_extend_helper.js.html @@ -104,7 +104,7 @@

app/extend/helper.js


- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/app_extend_request.js.html b/api/app_extend_request.js.html index 1fc42b0051..3c05c4930e 100644 --- a/api/app_extend_request.js.html +++ b/api/app_extend_request.js.html @@ -330,7 +330,7 @@

app/extend/request.js


- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/app_extend_response.js.html b/api/app_extend_response.js.html index 35af2bbab7..341b4bd41b 100644 --- a/api/app_extend_response.js.html +++ b/api/app_extend_response.js.html @@ -134,7 +134,7 @@

app/extend/response.js


- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/config_config.default.js.html b/api/config_config.default.js.html index 831d6a9488..24e071f096 100644 --- a/api/config_config.default.js.html +++ b/api/config_config.default.js.html @@ -374,7 +374,7 @@

config/config.default.js


- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/config_plugin.js.html b/api/config_plugin.js.html index aab71cf238..16739c4345 100644 --- a/api/config_plugin.js.html +++ b/api/config_plugin.js.html @@ -197,7 +197,7 @@

config/plugin.js


- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/global.html b/api/global.html index 9faf3f9121..3e618d05d2 100644 --- a/api/global.html +++ b/api/global.html @@ -648,7 +648,7 @@
Parameters:
Source:
@@ -1304,7 +1304,7 @@
Properties

- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/global.html#BaseContextClass b/api/global.html#BaseContextClass index b722c9ddca..7e5fc6df01 100644 --- a/api/global.html#BaseContextClass +++ b/api/global.html#BaseContextClass @@ -829,7 +829,7 @@ it's instantiated in context level,
- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/global.html#Controller b/api/global.html#Controller index f92bc60b84..137e9f5425 100644 --- a/api/global.html#Controller +++ b/api/global.html#Controller @@ -448,7 +448,7 @@
- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:46 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/global.html#Service b/api/global.html#Service index 3e5d1d0534..fc21138e1d 100644 --- a/api/global.html#Service +++ b/api/global.html#Service @@ -448,7 +448,7 @@
- Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:22 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:46 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/index.html b/api/index.html index 36a5ec8cee..e5e76a1df3 100644 --- a/api/index.html +++ b/api/index.html @@ -67,7 +67,7 @@

Classes

  • Agent
    • - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/index.js.html b/api/index.js.html index e0b915500e..2721fbcc48 100644 --- a/api/index.js.html +++ b/api/index.js.html @@ -120,7 +120,7 @@

      index.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_agent.js.html b/api/lib_agent.js.html index 1c5b9a98b6..0d6e20885f 100644 --- a/api/lib_agent.js.html +++ b/api/lib_agent.js.html @@ -143,7 +143,7 @@

      lib/agent.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_application.js.html b/api/lib_application.js.html index eb0dad38c0..19dfe50f8e 100644 --- a/api/lib_application.js.html +++ b/api/lib_application.js.html @@ -330,7 +330,7 @@

      lib/application.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_core_base_context_class.js.html b/api/lib_core_base_context_class.js.html index f88f59af5d..2ebbf083e2 100644 --- a/api/lib_core_base_context_class.js.html +++ b/api/lib_core_base_context_class.js.html @@ -81,7 +81,7 @@

      lib/core/base_context_class.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_core_base_context_logger.js.html b/api/lib_core_base_context_logger.js.html index 0a83632efd..911019f0b2 100644 --- a/api/lib_core_base_context_logger.js.html +++ b/api/lib_core_base_context_logger.js.html @@ -124,7 +124,7 @@

      lib/core/base_context_logger.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_core_context_httpclient.js.html b/api/lib_core_context_httpclient.js.html index 4ff2ae6902..ce9d4126dd 100644 --- a/api/lib_core_context_httpclient.js.html +++ b/api/lib_core_context_httpclient.js.html @@ -89,7 +89,7 @@

      lib/core/context_httpclient.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_core_messenger.js.html b/api/lib_core_messenger.js.html index 6800d6ccfc..a55620cdb0 100644 --- a/api/lib_core_messenger.js.html +++ b/api/lib_core_messenger.js.html @@ -198,7 +198,7 @@

      lib/core/messenger.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_egg.js.html b/api/lib_egg.js.html index df4bb5e7c9..846c297609 100644 --- a/api/lib_egg.js.html +++ b/api/lib_egg.js.html @@ -469,7 +469,7 @@

      lib/egg.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_jsdoc_context.jsdoc.html b/api/lib_jsdoc_context.jsdoc.html index 6fb0664dee..a3199819c7 100644 --- a/api/lib_jsdoc_context.jsdoc.html +++ b/api/lib_jsdoc_context.jsdoc.html @@ -103,7 +103,7 @@

      lib/jsdoc/context.jsdoc


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_jsdoc_request.jsdoc.html b/api/lib_jsdoc_request.jsdoc.html index a2530fbeaa..36b2804b3b 100644 --- a/api/lib_jsdoc_request.jsdoc.html +++ b/api/lib_jsdoc_request.jsdoc.html @@ -109,7 +109,7 @@

      lib/jsdoc/request.jsdoc


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_jsdoc_response.jsdoc.html b/api/lib_jsdoc_response.jsdoc.html index 28f727ba4e..f03d2c2dea 100644 --- a/api/lib_jsdoc_response.jsdoc.html +++ b/api/lib_jsdoc_response.jsdoc.html @@ -66,7 +66,7 @@

      lib/jsdoc/response.jsdoc


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_loader_agent_worker_loader.js.html b/api/lib_loader_agent_worker_loader.js.html index 6e0e1a91f9..df92c2a41a 100644 --- a/api/lib_loader_agent_worker_loader.js.html +++ b/api/lib_loader_agent_worker_loader.js.html @@ -86,7 +86,7 @@

      lib/loader/agent_worker_loader.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_loader_app_worker_loader.js.html b/api/lib_loader_app_worker_loader.js.html index 74bfb7dba7..d738fbc928 100644 --- a/api/lib_loader_app_worker_loader.js.html +++ b/api/lib_loader_app_worker_loader.js.html @@ -107,7 +107,7 @@

      lib/loader/app_worker_loader.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-development@2.0.0@egg-development_agent.js.html b/api/node_modules__egg-development@2.0.0@egg-development_agent.js.html index 83eac79461..bf4d38224e 100644 --- a/api/node_modules__egg-development@2.0.0@egg-development_agent.js.html +++ b/api/node_modules__egg-development@2.0.0@egg-development_agent.js.html @@ -125,7 +125,7 @@

      node_modules/_egg-development@2.0.0@egg-development/agent
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-development@2.0.0@egg-development_config_config.default.js.html b/api/node_modules__egg-development@2.0.0@egg-development_config_config.default.js.html index e0e5b14e64..5b5f8bbb99 100644 --- a/api/node_modules__egg-development@2.0.0@egg-development_config_config.default.js.html +++ b/api/node_modules__egg-development@2.0.0@egg-development_config_config.default.js.html @@ -77,7 +77,7 @@

      node_modules/_egg-development@2.0.0@egg-development/confi
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-i18n@2.0.0@egg-i18n_app.js.html b/api/node_modules__egg-i18n@2.0.0@egg-i18n_app.js.html index 2047374be9..c424fbe8b5 100644 --- a/api/node_modules__egg-i18n@2.0.0@egg-i18n_app.js.html +++ b/api/node_modules__egg-i18n@2.0.0@egg-i18n_app.js.html @@ -199,7 +199,7 @@

      node_modules/_egg-i18n@2.0.0@egg-i18n/app.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-i18n@2.0.0@egg-i18n_app_extend_context.js.html b/api/node_modules__egg-i18n@2.0.0@egg-i18n_app_extend_context.js.html index 3facf17004..f608b9f914 100644 --- a/api/node_modules__egg-i18n@2.0.0@egg-i18n_app_extend_context.js.html +++ b/api/node_modules__egg-i18n@2.0.0@egg-i18n_app_extend_context.js.html @@ -73,7 +73,7 @@

      node_modules/_egg-i18n@2.0.0@egg-i18n/app/extend/context.
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-i18n@2.0.0@egg-i18n_config_config.default.js.html b/api/node_modules__egg-i18n@2.0.0@egg-i18n_config_config.default.js.html index 86e0f62c9e..0640432375 100644 --- a/api/node_modules__egg-i18n@2.0.0@egg-i18n_config_config.default.js.html +++ b/api/node_modules__egg-i18n@2.0.0@egg-i18n_config_config.default.js.html @@ -89,7 +89,7 @@

      node_modules/_egg-i18n@2.0.0@egg-i18n/config/config.defau
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_application.js.html b/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_application.js.html index 82f9b65d7f..75365d05e7 100644 --- a/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_application.js.html +++ b/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_application.js.html @@ -174,7 +174,7 @@

      node_modules/_egg-jsonp@2.0.0@egg-jsonp/app/extend/applic
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_context.js.html b/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_context.js.html index ad8d6cd63b..03b7a04e54 100644 --- a/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_context.js.html +++ b/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_context.js.html @@ -95,7 +95,7 @@

      node_modules/_egg-jsonp@2.0.0@egg-jsonp/app/extend/contex
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_config_config.default.js.html b/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_config_config.default.js.html index 8773b13859..c07f461c48 100644 --- a/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_config_config.default.js.html +++ b/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_config_config.default.js.html @@ -77,7 +77,7 @@

      node_modules/_egg-jsonp@2.0.0@egg-jsonp/config/config.def
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-logrotator@3.0.1@egg-logrotator_config_config.default.js.html b/api/node_modules__egg-logrotator@3.0.1@egg-logrotator_config_config.default.js.html index e3ed226772..348eaede3d 100644 --- a/api/node_modules__egg-logrotator@3.0.1@egg-logrotator_config_config.default.js.html +++ b/api/node_modules__egg-logrotator@3.0.1@egg-logrotator_config_config.default.js.html @@ -86,7 +86,7 @@

      node_modules/_egg-logrotator@3.0.1@egg-logrotator/config/
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-multipart@2.0.0@egg-multipart_app_extend_context.js.html b/api/node_modules__egg-multipart@2.0.0@egg-multipart_app_extend_context.js.html index 75221a1692..7bbb2e9d74 100644 --- a/api/node_modules__egg-multipart@2.0.0@egg-multipart_app_extend_context.js.html +++ b/api/node_modules__egg-multipart@2.0.0@egg-multipart_app_extend_context.js.html @@ -122,7 +122,7 @@

      node_modules/_egg-multipart@2.0.0@egg-multipart/app/exten
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-multipart@2.0.0@egg-multipart_config_config.default.js.html b/api/node_modules__egg-multipart@2.0.0@egg-multipart_config_config.default.js.html index 76bbb96d6e..3d442205d3 100644 --- a/api/node_modules__egg-multipart@2.0.0@egg-multipart_config_config.default.js.html +++ b/api/node_modules__egg-multipart@2.0.0@egg-multipart_config_config.default.js.html @@ -88,7 +88,7 @@

      node_modules/_egg-multipart@2.0.0@egg-multipart/config/co
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-schedule@3.1.1@egg-schedule_app_extend_agent.js.html b/api/node_modules__egg-schedule@3.1.1@egg-schedule_app_extend_agent.js.html index eb48655a7f..af71623c1e 100644 --- a/api/node_modules__egg-schedule@3.1.1@egg-schedule_app_extend_agent.js.html +++ b/api/node_modules__egg-schedule@3.1.1@egg-schedule_app_extend_agent.js.html @@ -102,7 +102,7 @@

      node_modules/_egg-schedule@3.1.1@egg-schedule/app/extend/
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-security@2.0.0@egg-security_app_extend_context.js.html b/api/node_modules__egg-security@2.0.0@egg-security_app_extend_context.js.html index bd826706ef..bc9f1a242c 100644 --- a/api/node_modules__egg-security@2.0.0@egg-security_app_extend_context.js.html +++ b/api/node_modules__egg-security@2.0.0@egg-security_app_extend_context.js.html @@ -218,7 +218,7 @@

      node_modules/_egg-security@2.0.0@egg-security/app/extend/
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-security@2.0.0@egg-security_config_config.default.js.html b/api/node_modules__egg-security@2.0.0@egg-security_config_config.default.js.html index 715940ddda..0e0f5b9486 100644 --- a/api/node_modules__egg-security@2.0.0@egg-security_config_config.default.js.html +++ b/api/node_modules__egg-security@2.0.0@egg-security_config_config.default.js.html @@ -146,7 +146,7 @@

      node_modules/_egg-security@2.0.0@egg-security/config/conf
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-session@3.0.0@egg-session_app_extend_application.js.html b/api/node_modules__egg-session@3.0.0@egg-session_app_extend_application.js.html index 990a8cb31e..55d68cce54 100644 --- a/api/node_modules__egg-session@3.0.0@egg-session_app_extend_application.js.html +++ b/api/node_modules__egg-session@3.0.0@egg-session_app_extend_application.js.html @@ -116,7 +116,7 @@

      node_modules/_egg-session@3.0.0@egg-session/app/extend/ap
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-static@2.0.0@egg-static_config_config.default.js.html b/api/node_modules__egg-static@2.0.0@egg-static_config_config.default.js.html index 129bf4c70f..2a560147f2 100644 --- a/api/node_modules__egg-static@2.0.0@egg-static_config_config.default.js.html +++ b/api/node_modules__egg-static@2.0.0@egg-static_config_config.default.js.html @@ -88,7 +88,7 @@

      node_modules/_egg-static@2.0.0@egg-static/config/config.d
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-view@2.0.0@egg-view_app_extend_application.js.html b/api/node_modules__egg-view@2.0.0@egg-view_app_extend_application.js.html index e75d59ed7d..936ad7a08c 100644 --- a/api/node_modules__egg-view@2.0.0@egg-view_app_extend_application.js.html +++ b/api/node_modules__egg-view@2.0.0@egg-view_app_extend_application.js.html @@ -78,7 +78,7 @@

      node_modules/_egg-view@2.0.0@egg-view/app/extend/applicat
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-view@2.0.0@egg-view_app_extend_context.js.html b/api/node_modules__egg-view@2.0.0@egg-view_app_extend_context.js.html index fe6c311f2d..8ea9d739c3 100644 --- a/api/node_modules__egg-view@2.0.0@egg-view_app_extend_context.js.html +++ b/api/node_modules__egg-view@2.0.0@egg-view_app_extend_context.js.html @@ -107,7 +107,7 @@

      node_modules/_egg-view@2.0.0@egg-view/app/extend/context.
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-view@2.0.0@egg-view_config_config.default.js.html b/api/node_modules__egg-view@2.0.0@egg-view_config_config.default.js.html index e09a0d6ff7..aaa478ba90 100644 --- a/api/node_modules__egg-view@2.0.0@egg-view_config_config.default.js.html +++ b/api/node_modules__egg-view@2.0.0@egg-view_config_config.default.js.html @@ -83,7 +83,7 @@

      node_modules/_egg-view@2.0.0@egg-view/config/config.defau
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-watcher@3.0.0@egg-watcher_config_config.default.js.html b/api/node_modules__egg-watcher@3.0.0@egg-watcher_config_config.default.js.html index aa4b7c508d..1368f20a9d 100644 --- a/api/node_modules__egg-watcher@3.0.0@egg-watcher_config_config.default.js.html +++ b/api/node_modules__egg-watcher@3.0.0@egg-watcher_config_config.default.js.html @@ -77,7 +77,7 @@

      node_modules/_egg-watcher@3.0.0@egg-watcher/config/config
      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules_egg-core_lib_egg.js.html b/api/node_modules_egg-core_lib_egg.js.html index dcabece2ab..31be8ac8d8 100644 --- a/api/node_modules_egg-core_lib_egg.js.html +++ b/api/node_modules_egg-core_lib_egg.js.html @@ -364,7 +364,9 @@

      node_modules/egg-core/lib/egg.js

      } const router = this[ROUTER] = new Router({ sensitive: true }, this); // register router middleware - this.use(router.middleware()); + this.beforeStart(() => { + this.use(router.middleware()); + }); return router; } @@ -429,7 +431,7 @@

      node_modules/egg-core/lib/egg.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules_egg-core_lib_loader_context_loader.js.html b/api/node_modules_egg-core_lib_loader_context_loader.js.html index 7058953299..453b5aab52 100644 --- a/api/node_modules_egg-core_lib_loader_context_loader.js.html +++ b/api/node_modules_egg-core_lib_loader_context_loader.js.html @@ -166,7 +166,7 @@

      node_modules/egg-core/lib/loader/context_loader.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules_egg-core_lib_loader_egg_loader.js.html b/api/node_modules_egg-core_lib_loader_egg_loader.js.html index b0f4cbf08a..dcaa03bc12 100644 --- a/api/node_modules_egg-core_lib_loader_egg_loader.js.html +++ b/api/node_modules_egg-core_lib_loader_egg_loader.js.html @@ -483,7 +483,7 @@

      node_modules/egg-core/lib/loader/egg_loader.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules_egg-core_lib_loader_file_loader.js.html b/api/node_modules_egg-core_lib_loader_file_loader.js.html index 977d623c09..2ba55ce532 100644 --- a/api/node_modules_egg-core_lib_loader_file_loader.js.html +++ b/api/node_modules_egg-core_lib_loader_file_loader.js.html @@ -312,7 +312,7 @@

      node_modules/egg-core/lib/loader/file_loader.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules_egg-core_lib_loader_mixin_config.js.html b/api/node_modules_egg-core_lib_loader_mixin_config.js.html index ce8bea306c..677e22bcff 100644 --- a/api/node_modules_egg-core_lib_loader_mixin_config.js.html +++ b/api/node_modules_egg-core_lib_loader_mixin_config.js.html @@ -171,7 +171,7 @@

      node_modules/egg-core/lib/loader/mixin/config.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules_egg-core_lib_loader_mixin_controller.js.html b/api/node_modules_egg-core_lib_loader_mixin_controller.js.html index 908775ae62..e32427e2c1 100644 --- a/api/node_modules_egg-core_lib_loader_mixin_controller.js.html +++ b/api/node_modules_egg-core_lib_loader_mixin_controller.js.html @@ -180,7 +180,7 @@

      node_modules/egg-core/lib/loader/mixin/controller.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules_egg-core_lib_loader_mixin_custom.js.html b/api/node_modules_egg-core_lib_loader_mixin_custom.js.html index addc0d4b60..6755425f72 100644 --- a/api/node_modules_egg-core_lib_loader_mixin_custom.js.html +++ b/api/node_modules_egg-core_lib_loader_mixin_custom.js.html @@ -97,7 +97,7 @@

      node_modules/egg-core/lib/loader/mixin/custom.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules_egg-core_lib_loader_mixin_extend.js.html b/api/node_modules_egg-core_lib_loader_mixin_extend.js.html index 898337cfd8..4481774cb2 100644 --- a/api/node_modules_egg-core_lib_loader_mixin_extend.js.html +++ b/api/node_modules_egg-core_lib_loader_mixin_extend.js.html @@ -211,7 +211,7 @@

      node_modules/egg-core/lib/loader/mixin/extend.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules_egg-core_lib_loader_mixin_middleware.js.html b/api/node_modules_egg-core_lib_loader_mixin_middleware.js.html index ffa2ca3a2d..d6e368f4da 100644 --- a/api/node_modules_egg-core_lib_loader_mixin_middleware.js.html +++ b/api/node_modules_egg-core_lib_loader_mixin_middleware.js.html @@ -170,7 +170,7 @@

      node_modules/egg-core/lib/loader/mixin/middleware.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules_egg-core_lib_loader_mixin_plugin.js.html b/api/node_modules_egg-core_lib_loader_mixin_plugin.js.html index cb01bf846e..ea97ce798c 100644 --- a/api/node_modules_egg-core_lib_loader_mixin_plugin.js.html +++ b/api/node_modules_egg-core_lib_loader_mixin_plugin.js.html @@ -440,7 +440,7 @@

      node_modules/egg-core/lib/loader/mixin/plugin.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules_egg-core_lib_loader_mixin_router.js.html b/api/node_modules_egg-core_lib_loader_mixin_router.js.html index 50de0635c3..ec608210e1 100644 --- a/api/node_modules_egg-core_lib_loader_mixin_router.js.html +++ b/api/node_modules_egg-core_lib_loader_mixin_router.js.html @@ -78,7 +78,7 @@

      node_modules/egg-core/lib/loader/mixin/router.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules_egg-core_lib_loader_mixin_service.js.html b/api/node_modules_egg-core_lib_loader_mixin_service.js.html index 99e7c1be99..fde61f7134 100644 --- a/api/node_modules_egg-core_lib_loader_mixin_service.js.html +++ b/api/node_modules_egg-core_lib_loader_mixin_service.js.html @@ -86,7 +86,7 @@

      node_modules/egg-core/lib/loader/mixin/service.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules_egg-core_lib_utils_base_context_class.js.html b/api/node_modules_egg-core_lib_utils_base_context_class.js.html index b9fc03dc9f..361817f903 100644 --- a/api/node_modules_egg-core_lib_utils_base_context_class.js.html +++ b/api/node_modules_egg-core_lib_utils_base_context_class.js.html @@ -100,7 +100,7 @@

      node_modules/egg-core/lib/utils/base_context_class.js

      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules_egg-core_lib_utils_index.js.html b/api/node_modules_egg-core_lib_utils_index.js.html index 3859caca03..32689d6654 100644 --- a/api/node_modules_egg-core_lib_utils_index.js.html +++ b/api/node_modules_egg-core_lib_utils_index.js.html @@ -155,7 +155,7 @@

      node_modules/egg-core/lib/utils/index.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules_egg-core_lib_utils_router.js.html b/api/node_modules_egg-core_lib_utils_router.js.html index 1cde089dc5..a199d56fb5 100644 --- a/api/node_modules_egg-core_lib_utils_router.js.html +++ b/api/node_modules_egg-core_lib_utils_router.js.html @@ -342,6 +342,8 @@

      node_modules/egg-core/lib/utils/router.js

      }); controller = obj; } + // ensure controller is exists + if (!controller) throw new Error('controller not exists'); return controller; } @@ -383,7 +385,7 @@

      node_modules/egg-core/lib/utils/router.js


      - Documentation generated by JSDoc 3.5.5 on Mon Dec 11 2017 11:31:21 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Tue Dec 12 2017 07:19:45 GMT+0000 (UTC) using the Minami theme.
      diff --git a/en/core/error-handling.html b/en/core/error-handling.html index d6cf6ea70a..b9d70a2412 100644 --- a/en/core/error-handling.html +++ b/en/core/error-handling.html @@ -119,7 +119,7 @@

      # 404

      // config/config.default.js
      module.exports = {
      notfound: {
      pageUrl: '/404.html',
      },
      };

      # Customize 404 Response

      If you want a customized 404 response, you only need to create a middleware to handle it once, just like handling exceptions above.

      -
      // app/middleware/notfound_handler.js
      module.exports = () => {
      return async notFoundHandler(ctx, next) {
      await next();
      if (ctx.status === 404 && !ctx.body) {
      if (ctx.acceptJSON) {
      ctx.body = { error: 'Not Found' };
      } else {
      ctx.body = '<h1>Page Not Found</h1>';
      }
      }
      };
      };
      +
      // app/middleware/notfound_handler.js
      module.exports = () => {
      return async function notFoundHandler(ctx, next) {
      await next();
      if (ctx.status === 404 && !ctx.body) {
      if (ctx.acceptJSON) {
      ctx.body = { error: 'Not Found' };
      } else {
      ctx.body = '<h1>Page Not Found</h1>';
      }
      }
      };
      };

      Adding yours to middleware in config:

      // config/config.default.js
      module.exports = {
      middleware: [ 'notfoundHander' ],
      };
      diff --git a/en/tutorials/restful.html b/en/tutorials/restful.html index cd6cb71a9f..70e230c110 100644 --- a/en/tutorials/restful.html +++ b/en/tutorials/restful.html @@ -98,7 +98,7 @@

      #Mapping the 'topics' resource's CRUD interfaces to the app/controller/topics.js using app.resources

      # Developing controller

      In controller, we only need to implement the interface convention of app.resources RESTful style URL definition. For example, creating a 'topics' interface:

      -
      // app/controller/topics.js
      const Controller = require('egg').Controller;

      // defining the rule of request parameters
      const createRule = {
      accesstoken: 'string',
      title: 'string',
      tab: { type: 'enum', values: [ 'ask', 'share', 'job' ], required: false },
      content: 'string',
      };

      class TopicController extends Controller {
      async create() {
      const ctx = this.ctx;
      // validate the `ctx.request.body` with the expected format
      // status = 422 exception will be thrown if not passing the parameter validation
      ctx.validate(createRule);
      // call service to create a topic
      const id = yield ctx.service.topics.create(ctx.request.body);
      // configure the response body and status code
      ctx.body = {
      topic_id: id,
      };
      ctx.status = 201;
      }
      }
      module.exports = TopicController;
      +
      // app/controller/topics.js
      const Controller = require('egg').Controller;

      // defining the rule of request parameters
      const createRule = {
      accesstoken: 'string',
      title: 'string',
      tab: { type: 'enum', values: [ 'ask', 'share', 'job' ], required: false },
      content: 'string',
      };

      class TopicController extends Controller {
      async create() {
      const ctx = this.ctx;
      // validate the `ctx.request.body` with the expected format
      // status = 422 exception will be thrown if not passing the parameter validation
      ctx.validate(createRule);
      // call service to create a topic
      const id = await ctx.service.topics.create(ctx.request.body);
      // configure the response body and status code
      ctx.body = {
      topic_id: id,
      };
      ctx.status = 201;
      }
      }
      module.exports = TopicController;

      As shown above, a Controller mainly implements the following logic:

      1. call the validate function to validate the request parameters
      2. diff --git a/zh-cn/core/error-handling.html b/zh-cn/core/error-handling.html index 4d9e3f2d54..d4ea14ef88 100644 --- a/zh-cn/core/error-handling.html +++ b/zh-cn/core/error-handling.html @@ -124,7 +124,7 @@

        # 404

        // config/config.default.js
        module.exports = {
        notfound: {
        pageUrl: '/404.html',
        },
        };

        # 自定义 404 响应

        在一些场景下,我们需要自定义服务器 404 时的响应,和自定义异常处理一样,我们也只需要加入一个中间件即可对 404 做统一处理:

        -
        // app/middleware/notfound_handler.js
        module.exports = () => {
        return async notFoundHandler(ctx, next) {
        await next();
        if (ctx.status === 404 && !ctx.body) {
        if (ctx.acceptJSON) {
        ctx.body = { error: 'Not Found' };
        } else {
        ctx.body = '<h1>Page Not Found</h1>';
        }
        }
        };
        };
        +
        // app/middleware/notfound_handler.js
        module.exports = () => {
        return async function notFoundHandler(ctx, next) {
        await next();
        if (ctx.status === 404 && !ctx.body) {
        if (ctx.acceptJSON) {
        ctx.body = { error: 'Not Found' };
        } else {
        ctx.body = '<h1>Page Not Found</h1>';
        }
        }
        };
        };

        在配置中引入中间件:

        // config/config.default.js
        module.exports = {
        middleware: [ 'notfoundHander' ],
        };
        diff --git a/zh-cn/tutorials/restful.html b/zh-cn/tutorials/restful.html index e7c953f803..27a91e25e3 100644 --- a/zh-cn/tutorials/restful.html +++ b/zh-cn/tutorials/restful.html @@ -97,7 +97,7 @@

        #

        通过 app.resources 方法,我们将 topics 这个资源的增删改查接口映射到了 app/controller/topics.js 文件。

        # controller 开发

        controller 中,我们只需要实现 app.resources 约定的 RESTful 风格的 URL 定义 中我们需要提供的接口即可。例如我们来实现创建一个 topics 的接口:

        -
        // app/controller/topics.js
        const Controller = require('egg').Controller;

        // 定义创建接口的请求参数规则
        const createRule = {
        accesstoken: 'string',
        title: 'string',
        tab: { type: 'enum', values: [ 'ask', 'share', 'job' ], required: false },
        content: 'string',
        };

        class TopicController extends Controller {
        async create() {
        const ctx = this.ctx;
        // 校验 `ctx.request.body` 是否符合我们预期的格式
        // 如果参数校验未通过,将会抛出一个 status = 422 的异常
        ctx.validate(createRule);
        // 调用 service 创建一个 topic
        const id = yield ctx.service.topics.create(ctx.request.body);
        // 设置响应体和状态码
        ctx.body = {
        topic_id: id,
        };
        ctx.status = 201;
        }
        }
        module.exports = TopicController;
        +
        // app/controller/topics.js
        const Controller = require('egg').Controller;

        // 定义创建接口的请求参数规则
        const createRule = {
        accesstoken: 'string',
        title: 'string',
        tab: { type: 'enum', values: [ 'ask', 'share', 'job' ], required: false },
        content: 'string',
        };

        class TopicController extends Controller {
        async create() {
        const ctx = this.ctx;
        // 校验 `ctx.request.body` 是否符合我们预期的格式
        // 如果参数校验未通过,将会抛出一个 status = 422 的异常
        ctx.validate(createRule);
        // 调用 service 创建一个 topic
        const id = await ctx.service.topics.create(ctx.request.body);
        // 设置响应体和状态码
        ctx.body = {
        topic_id: id,
        };
        ctx.status = 201;
        }
        }
        module.exports = TopicController;

        如同注释中说明的,一个 Controller 主要实现了下面的逻辑:

        1. 调用 validate 方法对请求参数进行验证。