Commit 7b1f3ffb authored by 龚子荣's avatar 龚子荣

update

parent c6d472a3
......@@ -5,11 +5,20 @@
import numpy
from flask import Flask
import time
app = Flask(__name__)
@app.route("/<_x>/<_y>")
@app.route("/api")
def hello_world(_x, _y):
return {
"app": "numpy_api",
"timestamp": time.time()
}
@app.route("/api/<_x>/<_y>")
def hello_world(_x, _y):
_sx = _x.split(",")
_sy = _y.split(",")
......@@ -33,4 +42,4 @@ def hello_world(_x, _y):
if __name__ == '__main__':
app.run(host="0.0.0.0",port=5000)
app.run(host="0.0.0.0", port=5000)
Markdown is supported
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