Пример #1
0
def main():
    routes = [['/', HelloView]]

    web.run(web.Application, routes)
Пример #2
0
def run_web():  # pragma: no cover
    web.run(Application, get_routes())
Пример #3
0
from chilero import web


class Home(web.View):

    def get(self):
        return web.Response('Hello World!')


routes = [
    ['/', Home]
]


if __name__ == '__main__':
    web.run(web.Application, routes)
Пример #4
0
def run():  # pragma: no cover
    web.run(web.Application, routes)
Пример #5
0
def main():
    routes = [
        ['/', HelloView]
    ]

    web.run(web.Application, routes)