Replacing an ERP interface? Define API contracts, keep business rules and permissions on the server
An ERP frontend migration can keep every endpoint and still break the business. Picture a new release where the stock table labels on-hand inventory as "available." A new form skips a validation that used to live in the old browser code.