This is all I had to write to get all the RESTful phots routes.   The stuff up above was other experiments.