OSDN Git Service
(root)
/
ti2
/
ti2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactoring...
[ti2/ti2.git]
/
api_server.py
diff --git
a/api_server.py
b/api_server.py
index
c0ea372
..
403ec51
100755
(executable)
--- a/
api_server.py
+++ b/
api_server.py
@@
-9,12
+9,13
@@
app = Flask(__name__)
util = None
collect_func = None
util = None
collect_func = None
+
def parse_linkpair_records():
def parse_linkpair_records():
- result_strings = []
linkpairs = collect_func()
exporter = JsonExporter(util, linkpairs)
return exporter.run() + "\n"
linkpairs = collect_func()
exporter = JsonExporter(util, linkpairs)
return exporter.run() + "\n"
+
def start_app(listen='localhost:23456', debug=True):
app.config.update(
DEBUG=debug,
def start_app(listen='localhost:23456', debug=True):
app.config.update(
DEBUG=debug,
@@
-22,6
+23,7
@@
def start_app(listen='localhost:23456', debug=True):
)
app.run()
)
app.run()
+
@app.route("/")
def index():
return parse_linkpair_records()
@app.route("/")
def index():
return parse_linkpair_records()