From b60bb7d3f8e0d532fff36b92cd28a5d8a6eae102 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BE=9A=E5=AD=90=E8=8D=A3?= <gongzirong@chillcy.com>
Date: Fri, 19 Nov 2021 14:18:25 +0800
Subject: [PATCH] update

---
 main.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/main.py b/main.py
index d3a51fd..a756e01 100644
--- a/main.py
+++ b/main.py
@@ -4,20 +4,22 @@
 # Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings.
 
 import numpy
+import time
 from flask import Flask
 
 app = Flask(__name__)
 
 
 @app.route("/api")
-def hello_world(_x, _y):
+def index():
     return {
-        "app": "numpy_api"
+        "app": "numpy_api",
+        "timestamp": time.time()
     }
 
 
 @app.route("/api/<_x>/<_y>")
-def hello_world(_x, _y):
+def polyfit(_x, _y):
     _sx = _x.split(",")
     _sy = _y.split(",")
 
-- 
2.21.0