forked from muhammaddadu/clout-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45765b0
commit d099e67
Showing
36 changed files
with
3,257 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>JSDoc: Source: hooks/config.js</title> | ||
|
||
<script src="scripts/prettify/prettify.js"> </script> | ||
<script src="scripts/prettify/lang-css.js"> </script> | ||
<!--[if lt IE 9]> | ||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> | ||
<![endif]--> | ||
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> | ||
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> | ||
</head> | ||
|
||
<body> | ||
|
||
<div id="main"> | ||
|
||
<h1 class="page-title">Source: hooks/config.js</h1> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<section> | ||
<article> | ||
<pre class="prettyprint source linenums"><code>/*! | ||
* clout-js | ||
* Copyright(c) 2015 - 2016 Muhammad Dadu | ||
* MIT Licensed | ||
*/ | ||
/** | ||
* Config hooks | ||
* @module clout-js/hooks/config | ||
*/ | ||
const debug = require('debug')('clout:hook/config'); | ||
|
||
module.exports = { | ||
middleware: { | ||
event: 'start', | ||
priority: 25, | ||
fn: function (next) { | ||
!this.app.locals && (this.app.locals = {}); | ||
this.app.locals.config = this.config; | ||
this.app.request.clout = this; | ||
next(); | ||
} | ||
} | ||
}; | ||
</code></pre> | ||
</article> | ||
</section> | ||
|
||
|
||
|
||
|
||
</div> | ||
|
||
<nav> | ||
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-clout-js_hooks_config.html">clout-js/hooks/config</a></li><li><a href="module-clout-js_hooks_controllers.html">clout-js/hooks/controllers</a></li><li><a href="module-clout-js_hooks_engines.html">clout-js/hooks/engines</a></li><li><a href="module-clout-js_hooks_middleware.html">clout-js/hooks/middleware</a></li><li><a href="module-clout-js_hooks_models.html">clout-js/hooks/models</a></li><li><a href="module-clout-js_hooks_server.html">clout-js/hooks/server</a></li><li><a href="module-clout-js_lib_Clout.html">clout-js/lib/Clout</a></li><li><a href="module-clout-js_lib_Config.html">clout-js/lib/Config</a></li><li><a href="module-clout-js_lib_Logger.html">clout-js/lib/Logger</a></li><li><a href="module-clout-js_lib_utils.html">clout-js/lib/utils</a></li></ul><h3>Classes</h3><ul><li><a href="module-clout-js_lib_Clout-Clout.html">Clout</a></li><li><a href="module-clout-js_lib_Config-Config.html">Config</a></li></ul><h3>Global</h3><ul><li><a href="global.html#loadAPI">loadAPI</a></li><li><a href="global.html#loadAPIsFromDirectory">loadAPIsFromDirectory</a></li></ul> | ||
</nav> | ||
|
||
<br class="clear"> | ||
|
||
<footer> | ||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Feb 07 2018 23:43:39 GMT+0000 (GMT) | ||
</footer> | ||
|
||
<script> prettyPrint(); </script> | ||
<script src="scripts/linenumber.js"> </script> | ||
</body> | ||
</html> |
Oops, something went wrong.