One-dimensional Quantum Gravity and the Schwarzian theory