Updated /api/ route to return all the info from the meta table