Joint along a Bezier curve

Hi,

Is there a way to make a joint follow a Bezier curve?