/query should live under /api/query for consistency
/query should live under /api/query for consistency