You extend an app’s Gateway layer when you need to expose additional back-end logic and content to the UI layer.