Skip to content

Commit 00b4259

Browse files
committed
Add Models to JWTRoutes class & init_app method #119
1 parent 1f294e9 commit 00b4259

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ def register():
7878
class UserModel(db.Model):
7979
id = db.Column(db.Integer, primary_key=True)
8080
name = db.Column(db.String)
81+
8182
# You can define the primary key name with `ENTITY_KEY` on Flask's config
8283
app.config["ENTITY_KEY"] = "user_id"
84+
8385
# (`id` is used by default)
8486
JwtRoutes(app, entity_models=[UserModel, TeacherModel, ...etc])
8587

0 commit comments

Comments
 (0)