Skip to content

Instantly share code, notes, and snippets.

@mcroydon
Created March 6, 2009 08:21
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 mcroydon/74822 to your computer and use it in GitHub Desktop.
Save mcroydon/74822 to your computer and use it in GitHub Desktop.
from itty import get, post, run_itty
try:
import json
except ImportError:
import simplejson as json
@get('/')
def index():
return json.dumps({'message' : 'Hello, World!'})
run_itty()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment