APIRouter约等于Blueprint,创建一个APIRouter实例,prefix即url的前缀。 编写接口的时候从@app.route改为@router.post/get即可,变化不大。 注册router.
確定! 回上一頁