The Lagrangian for a massless particle in a potential, using the ##(-,+,+,+)## metric signature, is
$$L = \frac{\dot{x}_\mu \dot{x}^\mu}{2e} - V,$$
where ##\dot{x}^\mu := \frac{dx^\mu}{d\lambda}## is the velocity, ##\lambda## is some worldline parameter, ##e## is the auxiliary einbein and...