var controller = require('./controllers/base_controller');

module.exports.init = function (app) {

	app.get('/entries', handle(controller.listEntries));
	app.get('/entries/:id', handle(controller.getEntry));
	app.post('/entries', handle(controller.createEntry));

};

function handle(func) {
	return function (req, res) {
		console.log('[' + req.method + ']\t' + req.originalUrl);
		func(req, res);
	}
}
@@ -256,16 +256,75 @@
 Entry));
+%0A%09app.get('/uploads/:id', handle(controller.downloadFile));
 %0A%0A%7D;%0A%0Afu

Add route to download files