12345678910111213141516 |
- """
- Endpoints to support "play" mode, data restoration
- """
- from flask import Flask, Blueprint
- # The api blueprint. It is registered with the Flask app (see app.py)
- flexmeasures_api = Blueprint("flexmeasures_api_play", __name__)
- def register_at(app: Flask):
- """This can be used to register this blueprint together with other api-related things"""
- import flexmeasures.api.play.routes # noqa: F401 this is necessary to load the endpoints
- app.register_blueprint(flexmeasures_api, url_prefix="/api")
|