Created
August 21, 2011 18:09
-
-
Save robi42/1160932 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
exports.app = (req) -> | |
status: 200 | |
headers: | |
'Content-Type': 'text/plain' | |
body: ['Hello World!'] | |
if require.main is module | |
require('ringo/httpserver').main module.id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment