Add the option to protect change-producing routes with middleware