From 7461a7ca2ba2b641b05946829b56640b7c3b431b Mon Sep 17 00:00:00 2001 From: Kian-Tat Lim Date: Mon, 29 Apr 2024 23:35:00 -0700 Subject: [PATCH] Test out consdb root again. --- python/lsst/consdb/pqserver.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/python/lsst/consdb/pqserver.py b/python/lsst/consdb/pqserver.py index 98615054..a2737aef 100644 --- a/python/lsst/consdb/pqserver.py +++ b/python/lsst/consdb/pqserver.py @@ -133,6 +133,17 @@ def root(): return jsonify(data) +@app.get("/consdb") +def root2(): + logger.info(request) + data = { + "instruments": INSTRUMENT_LIST, + "obs_types": OBS_TYPE_LIST, + "dtypes": DTYPE_LIST, + } + return jsonify(data) + + @app.post("/flex///addkey") def add_flexible_metadata_key(instrument: str, obs_type: str): logger.info(request)