Coverage for seedboxsync/front/views/frontend/healthcheck.py: 100%
5 statements
« prev ^ index » next coverage.py v7.16.1, created at 2026-09-26 17:14 +0000
« prev ^ index » next coverage.py v7.16.1, created at 2026-09-26 17:14 +0000
1#
2# Copyright (C) 2015-2026 Guillaume Kulakowski <guillaume@kulakowski.fr>
3#
4# For the full copyright and license information, please view the LICENSE
5# file that was distributed with this source code.
6#
7"""SeedboxSync Flask view for healthcheck."""
9from flask import Response, jsonify
10from seedboxsync.front.views import bp_frontend as bp
13@bp.route("/healthcheck")
14def healthcheck() -> tuple[Response, int]:
15 """
16 Perform a basic HTTP health check.
18 Returns:
19 tuple[Response, int]: JSON response with health status ("ok") and HTTP status code 200.
20 """
21 return jsonify({"status": "ok"}), 200