Skip to content

Instantly share code, notes, and snippets.

@tomoconnor
Created December 19, 2018 10:56
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 tomoconnor/bc8067dadf0f9a917e741c07b6297bd9 to your computer and use it in GitHub Desktop.
Save tomoconnor/bc8067dadf0f9a917e741c07b6297bd9 to your computer and use it in GitHub Desktop.
from flask import Flask
from flask import redirect
app = Flask(__name__)
@app.route("/")
def rickroll():
return redirect("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
if __name__ == "__main__":
app.run(debug=True, host="0.0.0.0", port=8080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment