fix api controller setup
add crud to goals controller