change get info method

This commit is contained in:
2022-09-19 11:35:42 +07:00
parent c74709f1ce
commit d66cbdb427

View File

@@ -7,9 +7,9 @@ api = Api(app)
class Info(Resource): class Info(Resource):
def get(self): def get(self):
return {'version': 3, 'method': 'GET', 'message': 'Already started'} return {'version': 3, 'method': 'GET', 'message': 'Running'}
api.add_resource(Info, '/get_info') api.add_resource(Info, '/rest/api/get_info')
if __name__ == '__main__': if __name__ == '__main__':
app.run(host='0.0.0.0', port='5290') app.run(host='0.0.0.0', port='5290')