Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
Do not require HTTPS on healthcheck endpoint (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
alysivji authored Apr 9, 2020
1 parent af25907 commit f71149d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions busy_beaver/apps/debug/api/healthcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@

from flask import blueprints, jsonify

from busy_beaver.extensions import talisman

logger = logging.getLogger(__name__)
healthcheck_bp = blueprints.Blueprint("healthcheck", __name__)


@healthcheck_bp.route("/healthcheck", methods=["GET"])
@talisman(force_https=False)
def health_check():
logger.info("Hit healthcheck")
return jsonify({"ping": "pong"})

0 comments on commit f71149d

Please sign in to comment.