/**
 * @package admiral
 * @author Andrew Munsell <andrew@wizardapps.net>
 * @copyright 2015 WizardApps
 */

exports = module.exports = function(app) {
    /**
     * Index route
     */
    app.get('/', function(req, res) {
        return res.json({
            name: 'Admiral API'
        });
    });
};

exports['@singleton'] = true;
exports['@require'] = ['app'];
/**
 * @package admiral
 * @author Andrew Munsell <andrew@wizardapps.net>
 * @copyright 2015 WizardApps
 */

exports = module.exports = function(app) {
    /**
     * Index route
     */
    app.get('/v1', function(req, res) {
        return res.json({
            name: 'Admiral API',
            version: 1
        });
    });
};

exports['@singleton'] = true;
exports['@require'] = ['app'];
Move index route to the v1 path since we have a static file