Created
December 19, 2018 10:56
-
-
Save tomoconnor/bc8067dadf0f9a917e741c07b6297bd9 to your computer and use it in GitHub Desktop.
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
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