This repository contains a simple Flask-based API that returns the list of workspaces a user belongs to.
Install dependencies:
pip install -r requirements.txtpython app.pyThe server starts on port 5000.
Retrieve workspaces for a user by passing the user_id query parameter:
curl http://localhost:5000/workspaces?user_id=1This returns all workspaces the specified user belongs to. If the user has no associated workspaces, the response contains an empty array.