modify the routes for books api