Skip to content

Commit 9edf712

Browse files
authored
Update main.py
Added API version
1 parent a104556 commit 9edf712

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.py

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
def index():
1010
return "wikipedia keywords getter"
1111

12+
@app.route("/api/version")
13+
def api_version():
14+
return "0.1"
15+
1216
@app.route('/api/getinfo/<string:id>/<int:n>/')
1317
def getinfo(id, n):
1418
return wiki_search.getData(id, n)

0 commit comments

Comments
 (0)