Flask - WebSocket and Real-Time
What is wrong with this code?
from flask_restx import Api, Namespace, Resource
api = Api()
ns = Namespace('customers')
@ns.route('/info')
class CustomerInfo(Resource):
def get(self):
return {'customer': 'info'}
api.add_namespace(ns)