Skip to content

Commit

Permalink
info response now needs to accept messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gsfk committed Dec 16, 2024
1 parent 5c153f2 commit 65b3a45
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bento_beacon/utils/beacon_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,18 @@ def middleware_meta_callback():


def beacon_info_response(info):
return {
r = {
"response": info,
"meta": {
"beaconId": current_app.config["BEACON_ID"],
"apiVersion": current_app.config["BEACON_SPEC_VERSION"],
"returnedSchemas": info_endpoint_schema(),
},
}
info = response_info()
if info:
r["info"] = info
return r


# censored (or not) according to permissions
Expand Down

0 comments on commit 65b3a45

Please sign in to comment.