Flask - WebSocket and Real-Time
Given the code snippet:
What URL path will return the JSON
from flask_restx import Api, Namespace, Resource
api = Api()
users_ns = Namespace('users')
@users_ns.route('/profile')
class UserProfile(Resource):
def get(self):
return {'user': 'Alice'}
api.add_namespace(users_ns)What URL path will return the JSON
{'user': 'Alice'} when the Flask app runs?