Skip to content

Commit 4b56bf3

Browse files
authored
Merge pull request #59 from DefteZ/patch-1
Fix minor syntax mistakes in docs
2 parents ea5fd93 + 798a169 commit 4b56bf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/changing_default_behavior.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ your api in their programs.
5858

5959
.. code-block:: python
6060
61-
@app.route('/create-dev-token', methods=[POST])
61+
@app.route('/create-dev-token', methods=['POST'])
6262
@jwt_required
6363
def create_dev_token():
6464
username = get_jwt_identity()
65-
expires = datatime.timedelta(days=365)
65+
expires = datetime.timedelta(days=365)
6666
token = create_access_token(username, expires_delta=expires)
6767
return jsonify({'token': token}), 201

0 commit comments

Comments
 (0)