A most elegant way of attaching an endstop.

A most elegant way of attaching an endstop.
http://i.imgur.com/YPVupAh.jpg

For X and Y, sure, but I wouldn’t trust it for Z.