From b8f27e7610b209c45adae4169a991d8995204ae1 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Mon, 20 Nov 2017 10:04:28 -0800 Subject: [PATCH] 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. --- src/pylorax/api/v0.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pylorax/api/v0.py b/src/pylorax/api/v0.py index 21538bbd..d477ad70 100644 --- a/src/pylorax/api/v0.py +++ b/src/pylorax/api/v0.py @@ -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():