edit api controller, create pirofu