Commit 98bd8f9f authored by Nane Kratzke's avatar Nane Kratzke
Browse files

Fix greeter rest

parent f86b025a
import flask
app = flask.Flask(__name__)
@app.route('/', methods=['GET'])
def home():
return f"Hello!"
@app.route('/hello/<name>', methods=['GET'])
def hello(name):
return f"Hello, { name.strip() }!""")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment