connected API with frontend app