flask-jwt-router icon indicating copy to clipboard operation
flask-jwt-router copied to clipboard

🔥🔥 Move whitelist routes config to decorator

Open joegasewicz opened this issue 5 years ago • 1 comments

This is our current public api for declaring whitelist routes:

app.config["WHITE_LIST_ROUTES"] = [
        ("POST", "/auth/user"), ("POST", "/auth/user/login"),
        ("POST", "/auth/teacher"), ("POST", "/auth/teacher/login"),
    ]

This could be a decorator instead

 @jwt_routes.whitelist

joegasewicz avatar Nov 30 '19 20:11 joegasewicz

This will be in the v0.1.0

joegasewicz avatar Jan 10 '20 08:01 joegasewicz