allnet: add Alive get and post handlers

This commit is contained in:
2023-06-30 00:32:52 -04:00
parent 60b3bc7750
commit 610ef70bad
2 changed files with 17 additions and 0 deletions

View File

@ -70,6 +70,20 @@ class HttpDispatcher(resource.Resource):
action="handle_loaderstaterecorder",
conditions=dict(method=["POST"]),
)
self.map_post.connect(
"allnet_alive",
"/sys/servlet/Alive",
controller="allnet",
action="handle_alive",
conditions=dict(method=["POST"]),
)
self.map_get.connect(
"allnet_alive",
"/sys/servlet/Alive",
controller="allnet",
action="handle_alive",
conditions=dict(method=["GET"]),
)
self.map_post.connect(
"allnet_billing",
"/request",