Skip to content

Instantly share code, notes, and snippets.

@drewhamlett
Last active December 17, 2015 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewhamlett/5665889 to your computer and use it in GitHub Desktop.
Save drewhamlett/5665889 to your computer and use it in GitHub Desktop.
/*jslint node:true, nomen:true, vars:true */
'use strict';
var express = require('express'),
http = require('http');
app.use(require('./airplane'));
http.createServer(app).listen(3000);
/*jslint nomen: true, node:true */
'use strict';
var express = require('express'),
_ = require('underscore'),
async = require('async'),
app = express();
function _setMaintenance(airplane, callback) {
return callback();
}
app.put('/json/airplane/maintenance/', function (req, res) {
var airplane = req.body.airplane;
_setMaintenance(airplane, function () {
req.send(200);
});
});
module.exports = app;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment