Skip to content

Commit fa6e0b9

Browse files
committed
Make healthcheck static.
1 parent 660914f commit fa6e0b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tiatoolbox/visualization/tileserver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,8 @@ def sessions(self: TileServer) -> Response:
734734
session_paths[key] = str(slide.info.as_dict().get("file_path", ""))
735735
return jsonify(session_paths)
736736

737-
def healthcheck(self: TileServer) -> Response:
737+
@staticmethod
738+
def healthcheck() -> Response:
738739
"""Simple health check endpoint to verify the server is running.
739740
740741
Useful for load balancers or uptime monitoring tools to check

0 commit comments

Comments
 (0)