updatd controller to respond to /workspaces with json