var restify = require('restify');
var restifySwagger = require('node-restify-swagger');
var restifyValidation = require('node-restify-validation');

var server = restify.createServer({
    name: 'galaxy-api',
    version: '0.0.1'
});

server.use(restify.acceptParser(server.acceptable));
server.use(restify.bodyParser());
server.use(restify.CORS());
server.use(restify.gzipResponse());
server.use(restify.queryParser());
server.use(restifyValidation.validationPlugin({errorsAsArray: false}));

server.get(/\/static\/?.*/, restify.serveStatic({
    directory: './static'
}));

server.get(/\/data\/?.*/, restify.serveStatic({
    directory: './data'
}));

restifySwagger.configure(server);
restifySwagger.loadRestifyRoutes();

module.exports = server;

@@ -142,16 +142,50 @@
 ion');%0A%0A
+var pkg = require('./package');%0A%0A%0A
 var serv
@@ -226,20 +226,16 @@
 me: 
-'galaxy-api'
+pkg.name
 ,%0A  
@@ -249,15 +249,19 @@
 on: 
-'0.0.1'
+pkg.version
 %0A%7D);

use name/version from package.json when serving server