views.py 263 B

12345678910111213
  1. from app.config import SHA1
  2. from app.monitor.base import monitor_bp
  3. @monitor_bp.route("/git")
  4. def git_sha1():
  5. return SHA1
  6. @monitor_bp.route("/exception")
  7. def test_exception():
  8. raise Exception("to make sure sentry works")
  9. return "never reach here"