Change endpoint from /pages/ to /page/