快捷路由装饰器 | 等价于 |
---|---|
app.get('/login') |
app.route('/login',methods=['GET']) |
app.post('/login') |
app.route('/login'),methods=['POST' |
app.put('/login') |
app.route('/login',methods=['PUT']) |
app.delete('/login') |
app.route('/login',methods=['DELETE']) |
app.patch('/login') |
app.route('/login',methods=['PATCH']) |