added flask stub
This commit is contained in:
@@ -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`
|
||||||
@@ -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()
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
flask
|
||||||
Reference in New Issue
Block a user