I seem to have got most of the routes working correctly.