This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
M2OLA/backend/app/api/UserInfoAPI.py
2017-01-26 17:16:23 +01:00

13 lines
224 B
Python

from flask import session
from flask_restful import Resource
class UserInfoAPI(Resource):
"""
UserInfo Api Resource
"""
def get(self):
user = session["user"]
return {'USER': user}, 200