from flask import Flask
from flask_restful import Resource, Api
app = Flask("LeaderAPI")
api = Api(app)
class LeaderAPI(Resource):
def get(self):
return "Hello world!"
api.add_resource(LeaderAPI, "/")
if __name__ == "__main__":
app.run()