routes.js
294 Bytes
// # routes
var IoC = require('electrolyte')
var lib, app
module.exports = function(_lib, _app) {
lib = _lib
app = _app
return routes
}
function routes() {
var self = app;
var home = IoC.create('controllers/home')
app.get('/', home.render)
app.get('/about', home.about)
}