瀏覽代碼

add route

Oz N Tiram 9 年之前
父節點
當前提交
1e624553d4
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      frank/frank.py

+ 5 - 0
frank/frank.py

@@ -254,6 +254,11 @@ def start():
     return "OK"
 
 
+@app.route('/status')
+def status():
+    return "Frank is alive\n")
+
+
 @click.group()
 def cli():
     pass