from flask import Flask
from flange import Flange

app = Flask(__name__)
fl = Flange()
fl.init_app(app)

@fl.service_endpoint("/data/chickens")
def get_chickens():
    data = {
        'chickens': [
            "<NAME>",
            "<NAME>"
        ]
    }
    return data

@app.route('/static/<path:path>')
def send_static(path):
    return send_from_directory('static', path)

if __name__ == '__main__':
    app.run()

from flask import Flask
from flange import Flange

app = Flask(__name__)
fl = Flange()
fl.init_app(app)

@fl.service_endpoint("/data/chickens")
def get_chickens():
    data = {
        'chickens': [
            "<NAME>",
            "<NAME>"
        ]
    }
    return data

@app.route('/static/<path:path>')
def send_static(path):
    return send_from_directory('static', path)

if __name__ == '__main__':
    app.run()
