renamed subpages => pages, fixed issue with /v2 throwing an error

Signed-off-by: Chris Jones <chris@jonezy.org>