Skip to content

Commit

Permalink
doc: update flask logo.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Dec 14, 2022
1 parent 0f18fba commit e781a3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/flask.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/flask.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ with app.test_request_context():

### HTTP 方法

默认情况下,路由仅响应 `GET` 请求。您可以使用 `route()` 装饰器的方法参数来处理不同的 `HTTP` 方法
默认路由仅响应 `GET` 请求。可以使用 `route()` 装饰器的方法参数来处理不同的 `HTTP` 方法

```py
from flask import request

@app.route('/login', methods=['GET', 'POST'])
@app.route('/login',methods=['GET','POST'])
def login():
if request.method == 'POST':
return do_the_login()
Expand Down

0 comments on commit e781a3b

Please sign in to comment.