mirror of
https://github.com/Dannecron/netology-devops-gitlab.git
synced 2025-12-25 23:32:34 +03:00
change get info method
This commit is contained in:
@@ -7,9 +7,9 @@ api = Api(app)
|
||||
|
||||
class Info(Resource):
|
||||
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__':
|
||||
app.run(host='0.0.0.0', port='5290')
|
||||
|
||||
Reference in New Issue
Block a user