var shipSystems = require('../shipSystems.js');
var thrusters = shipSystems.getSystemById('thrusters');

exports.registerRoutes = function (app, config) {
  app.post('/api/systems/thrusters/attitude', function (request, response) {
    thrusters.setAttitude(request.body);
    response.send(thrusters.attitude);
  });
};

var shipSystems = require('../shipSystems.js');
var thrusters = shipSystems.getSystemById('thrusters');

exports.registerRoutes = function (app, config) {
  app.post('/api/systems/thrusters/attitude', function (request, response) {
    thrusters.setAttitude(request.body);
    response.send(thrusters.attitude);
  });

  app.post('/api/systems/thrusters/velocity', function (request, response) {
    thrusters.setVelocity(request.body);
    response.send(thrusters.velocity);
  });
};

Add route for updating thruster velocity