is it good practice to call an action from an api? - Wasp