Created
December 16, 2023 17:57
-
-
Save Bijitakc/0d12cc006b0eea8a7e58714f73fb6ac9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import g | |
from core.auth_app import bp | |
from core.decorators import login_required | |
@bp.route('/test', methods=['GET']) | |
@login_required | |
def test(): | |
context = { | |
"user_id": g.user_id, | |
"email": g.user | |
} | |
return context, 200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment