On the board it has the connections labeled as + - S.
This means: positive voltage (normally 5 volts), ground and signal.
Your endstops don't require power, so you can ignore the + pin.
You end up with - and S and since it's just a dumb momentary switch, it doesn't matter which pin you connect to which end of your microswitch.