示例#1
0
def main():
    routes = [['/', HelloView]]

    web.run(web.Application, routes)
示例#2
0
文件: web.py 项目: dmonroy/emergency
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)