Skip to content

Instantly share code, notes, and snippets.

@gregsabo
Created March 28, 2014 17:06
Show Gist options
  • Save gregsabo/9837712 to your computer and use it in GitHub Desktop.
Save gregsabo/9837712 to your computer and use it in GitHub Desktop.
URL Shortener Iteration 2
from flask import Flask
from flask import request
app = Flask(__name__)
@app.route("/create")
def route_create():
url = request.args.get('url')
return "Would make a shortcode for: %s" % url
if __name__ == "__main__":
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment