Adding read-only JSON endpoints for /posts