我如何在 Bottle 中管理多个应用程序,从一个应用程序提供服务run
?
应用程序 0
from bottle import Bottle
app0 = Bottle()
@app0.route('/app0/')
def app0_route():
return {'`app0` says': 'Greetings!'}
应用程序 1
from bottle import Bottle
app1 = Bottle()
@app1.route('/app1/')
def app1_route():
return {'`app1` says': 'Greetings!'}
主要的
if __name__ == '__main__':
app0.run() # How do I link `app1` here?