Update api.php

Added brave cost to canaccess()