Created
March 5, 2020 19:39
-
-
Save pakoy3k/5322eb1af1325e9e7d1ecb75aeb057be to your computer and use it in GitHub Desktop.
Basic api with python and flask
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
import flask | |
app = flask.Flask(__name__) | |
app.config["DEBUG"] = True | |
@app.route('/', methods=['GET']) | |
def home(): | |
url = request.args.get('url') | |
print ("Add url --> " + url) | |
app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment