Добавил простую метрику
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lulzette 2021-10-31 02:24:54 +03:00
parent 4ab80616a6
commit 54139d6f76

10
main.py
View File

@ -104,6 +104,16 @@ class Back():
return bool(posts.delete_one({'name': name}).deleted_count) return bool(posts.delete_one({'name': name}).deleted_count)
class Metrics:
def alive():
return str("alive 1")
@route('/metrics')
def metrics():
return Metrics.alive()
@route('/post/<name>') @route('/post/<name>')
def post(name): def post(name):
''' '''