没有项目描述
bottlecors的Python项目详细描述
瓶装啤酒
pip install bottlecors
然后
frombottleimportBottlefrombottlecorsimportadd_cors,abortapp=Bottle()@app.get('/')defhome():"This just shows 404 always"abort(404,'msg')# Cors needs to be added after# all routes have been added to your appapp=add_cors(app)
功能
- 全套球衣
- 在选项正文中发送函数的docstring
- 仅为已添加的路由添加