<reponame>ibiscum/Crafting-Test-Driven-Software-with-Python<filename>Chapter11/webframeworks/src/wbtframeworks/tg2/__init__.py
from tg import expose, TGController

class RootController(TGController):
    @expose()
    def index(self):
        return 'Hello World'


def make_application():
    from tg import MinimalApplicationConfigurator

    config = MinimalApplicationConfigurator()
    config.update_blueprint({
        'root_controller': RootController()
    })

    return config.make_wsgi_app()
from tg import expose, TGController

class RootController(TGController):
    @expose()
    def index(self):
        return 'Hello World'


def make_application():
    from tg import MinimalApplicationConfigurator

    config = MinimalApplicationConfigurator()
    config.update_blueprint({
        'root_controller': RootController()
    })

    return config.make_wsgi_app()