Co-authored-by: Joel <[email protected]> Co-authored-by: Yeuoly <[email protected]> Co-authored-by: JzoNg <[email protected]> Co-authored-by: StyleZhang <[email protected]> Co-authored-by: jyong <[email protected]> Co-authored-by: nite-knite <[email protected]> Co-authored-by: jyong <[email protected]>
18 lines
272 B
Python
18 lines
272 B
Python
from flask_restful import Resource
|
|
|
|
from controllers.console import api
|
|
|
|
|
|
class PingApi(Resource):
|
|
|
|
def get(self):
|
|
"""
|
|
For connection health check
|
|
"""
|
|
return {
|
|
"result": "pong"
|
|
}
|
|
|
|
|
|
api.add_resource(PingApi, '/ping')
|