Created
February 28, 2012 16:55
-
-
Save addisonj/1933628 to your computer and use it in GitHub Desktop.
an app that fails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this app is full of fail | |
var express = require("express") | |
exports.createServer = function() { | |
var app = express.createServer() | |
app.get('/', function(req, res) { | |
process.exit(1) // obviously not going to get past this | |
res.send('okay') | |
}) | |
app.get("/good", function(req, res) { | |
res.send("YEAHHHH") | |
}) | |
return app | |
} | |
if (module === require.main) { | |
require('itv/server').listen(__filename, 7245) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment