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:
parent
569ce1d3dc
commit
105679d79d
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user