Add /api/v0/test route

Returns a simple string to indicate that the API server is running.

/api/v0/status should be used instead, it provides more detailed info in
JSON format.
This commit is contained in:
Brian C. Lane 2017-11-20 10:04:28 -08:00
parent 569ce1d3dc
commit 105679d79d

View File

@ -50,6 +50,11 @@ def take_limits(iterable, offset, limit):
def v0_api(api): def v0_api(api):
""" Setup v0 of the API server""" """ Setup v0 of the API server"""
@api.route("/api/v0/test")
@crossdomain(origin="*")
def v0_test():
return "API v0 test"
@api.route("/api/v0/status") @api.route("/api/v0/status")
@crossdomain(origin="*") @crossdomain(origin="*")
def v0_status(): def v0_status():