2013-04-09 16:02:36 +00:00
|
|
|
/**
|
|
|
|
* Module dependencies.
|
|
|
|
*/
|
|
|
|
|
2013-05-18 00:35:54 +00:00
|
|
|
var ModuleLoader = require('sl-module-loader');
|
2013-04-09 16:02:36 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Export the middleware.
|
|
|
|
*/
|
|
|
|
|
|
|
|
module.exports = middleware;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Load application modules based on the current directories configuration files.
|
|
|
|
*/
|
|
|
|
|
|
|
|
function middleware() {
|
|
|
|
var modules = this.modules;
|
|
|
|
|
|
|
|
return function executeAsteroidMiddleware(req, res, next) {
|
|
|
|
// TODO implement asteroid specific middleware stack
|
|
|
|
next();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|