Commit 9765a618 authored by Schwieger, Jana's avatar Schwieger, Jana
Browse files

rest

parent 810add34
Pipeline #39853 passed with stages
in 43 seconds
import flask
from flask import request
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() }!"
app.run(host="0.0.0.0")
\ No newline at end of file
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