from pfrf_example.controller.authentication_controller import auth_controller

from pfrf.pfrf_app_config import PFRFModuleConfigInterface
from pfrf_example.controller.person_controller import person_controller
from pfrf_example.model.person import database as person_model


class PFRFExampleRegistry(PFRFModuleConfigInterface):

    def register_controller(self, flask_app):
        flask_app.register_blueprint(person_controller)
        flask_app.register_blueprint(auth_controller)

    def register_model(self, flask_app):
        person_model.create_all()


pfrf_example_registry = PFRFExampleRegistry()
