Remove the leading underscore from ThingServer._api_prefix.

This commit is contained in:
Richard Bowman 2026-05-12 20:44:44 +01:00
parent eff66eb667
commit 7163823bf7
4 changed files with 5 additions and 5 deletions

View file

@ -93,8 +93,8 @@ def customise_server(
lt.logs.configure_thing_logger(logging.DEBUG)
# Add an endpoint to get the logs - (directly calling the FastAPI decorator)
server.app.get(str(server._api_prefix.rstrip("/")) + "/log/")(retrieve_log)
server.app.get(str(server._api_prefix.rstrip("/")) + "/logfile/")(
server.app.get(str(server.api_prefix.rstrip("/")) + "/log/")(retrieve_log)
server.app.get(str(server.api_prefix.rstrip("/")) + "/logfile/")(
retrieve_log_from_file
)