added packages endpoint

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