Pursuant to the second section of act approved April 18, 1814, directing that all flags, standards, and colors taken by the Army and Navy of the United States from their enemies be preserved and displayed under the direction of the President of the United States in such public place as he shall deem proper, the Secretary of War is directed to take measures to cause the flags, standards, and colors taken by the Army of the United States from their enemies in the recent war with Mexico to be deposited for the purpose specified in the act in the Military Academy at West Point.

JAMES K. POLK
James K. Polk, Executive Order—Disposal of Flags Captured in the War With Mexico Online by Gerhard Peters and John T. Woolley, The American Presidency Project https://www.presidency.ucsb.edu/node/379127