Добавил простую метрику
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4ab80616a6
commit
54139d6f76
10
main.py
10
main.py
@ -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):
|
||||||
'''
|
'''
|
||||||
|
Loading…
Reference in New Issue
Block a user