Skip to content

Commit

Permalink
Add back an empty root for liveness.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktlim committed Apr 30, 2024
1 parent 7432891 commit f0630a5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions python/lsst/consdb/pqserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,17 @@ def handle_not_found(e):
###################################


@app.get("/")
def root():
# Don't log liveness checks.
data = {
"instruments": INSTRUMENT_LIST,
"obs_types": OBS_TYPE_LIST,
"dtypes": DTYPE_LIST,
}
return jsonify(data)


@app.get("/consdb")
def root2():
logger.info(request)
Expand Down

0 comments on commit f0630a5

Please sign in to comment.