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 82da7d2510
commit b8f27e7610

View File

@ -50,6 +50,11 @@ def take_limits(iterable, offset, limit):
def v0_api(api):
""" 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")
@crossdomain(origin="*")
def v0_status():