Connecting End Stop Switches

Where would the end stops usually connect to on an Arduino controlled CNC?
I am using this code here to code the CNC: GcodeCNCDemo/GcodeCNCDemo2Axis at master · MarginallyClever/GcodeCNCDemo · GitHub