move api routes to resource style
kill off the chapter stuff