added flask stub

This commit is contained in:
Marco Zeisler 2021-04-10 16:06:18 +02:00
parent 0c5aa41fd0
commit a62632eb0a
3 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,6 @@
# Super Lightweight Flask Web Server
* `pip install requirements.txt`
* `python entitiy_ident_service.py`
* `http://127.0.0.1:5000` -> `Hello World`
* `http://127.0.0.1:5000/api1` -> `api1`
* `http://127.0.0.1:5000/api2` -> `api2`

View File

@ -0,0 +1,22 @@
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World'
@app.route('/api1')
def api1():
return 'api1'
@app.route('/api2')
def api2():
return 'api2'
if __name__ == '__main__':
app.run()

View File

@ -0,0 +1 @@
flask