/*
 * GET home page.
 */

exports.index = function(req, res) {
	res.render('index', {
		title : 'Express'
	});
	/*
	var mongoose = require('mongoose');
	var Kitten = mongoose.model('Kitten');
	var db = mongoose.connection;
	db.on('error', console.error.bind(console, 'connection error:'));
	var silence = new Kitten({
		name : 'Silence'
	});
	silence.save();
	Kitten.find(function(err, kittens) {
		console.log(kittens);
	});*/
	
	/*
	var taglib = require('taglib');
	taglib.read('/home/magne/music/01 The Business Of Living.mp3', function(err, tag, audioProperties){
		console.log(tag);
		console.log(audioProperties);
	});*/
};
/*
 * GET home page.
 */
var mongoose = require('mongoose'),
	db = mongoose.connection,
	settings = require('../settings.json');

exports.index = function(req, res) {
	res.render('index', {
		title : 'Webmusic',
		soundmanager: settings.soundmanager,
		debug: settings.debug
	});
};
Index route