{"size": 664, "ext": "js", "max_stars_repo_path": "node_modules/restify-version/test/server.js", "max_stars_repo_name": "abuzarawan/CatchingArt", "max_stars_repo_stars_event_min_datetime": "2015-05-23T22:11:04.000Z", "max_stars_repo_stars_event_max_datetime": "2016-10-13T12:53:36.000Z", "max_issues_repo_path": "test/server.js", "max_issues_repo_name": "mal/restify-version", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/server.js", "max_forks_repo_name": "mal/restify-version", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.75, "max_line_length": 50, "alphanum_fraction": 0.5195783133}
var restify = require('restify')
    restver = require('..'); // restify-version

var api = module.exports = restify.createServer();

function respond(req, res) {
    res.send(null);
}

api.ver('1.0.0', function() {
    api.get('/access', respond);
    api.get('/multi', respond);
    api.get({
        path: '/overload'
      , version: ['3.0.0']
    }, respond);
});

api.ver(['2.0.0', '3.0.0'], function() {
    api.get('/multi', respond);
    api.ver('1.0.0', function() {
        api.get('/nested', respond);
    });
    api.get({
        path: '/stack'
      , version: '1.0.0'
    }, respond);
    api.get({
        path: '/unversioned'
    }, respond)
});
