flask-jwt-router
flask-jwt-router copied to clipboard
🔥🔥 Move whitelist routes config to decorator
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
This will be in the v0.1.0