mirror of
https://github.com/simple-login/app.git
synced 2024-11-14 08:01:13 +01:00
18 lines
326 B
Python
18 lines
326 B
Python
from app.build_info import SHA1
|
|
from app.monitor.base import monitor_bp
|
|
|
|
|
|
@monitor_bp.route("/git")
|
|
def git_sha1():
|
|
return SHA1
|
|
|
|
|
|
@monitor_bp.route("/live")
|
|
def live():
|
|
return "live"
|
|
|
|
|
|
@monitor_bp.route("/exception")
|
|
def test_exception():
|
|
raise Exception("to make sure sentry works")
|
|
return "never reach here"
|