Created
August 26, 2012 21:07
-
-
Save anonymous/3483591 to your computer and use it in GitHub Desktop.
Not working file server :P
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
var flatiron = require('flatiron'), | |
path = require('path'), | |
app = flatiron.app; | |
app.config.file({ file: path.join(__dirname, 'config', 'config.json') }); | |
app.use(flatiron.plugins.http); | |
app.router.get('/', function () { | |
this.res.end("no") | |
}); | |
app.router.get(/\/files.*\/?/, function (a) { | |
this.res.end(a) | |
}); | |
app.start(80); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment