candidate: Despite its designation as a museum , Versailles served as an annex to the Hôtel des Invalides pursuant to the decree of 7 frimaire an VIII ( 28 November 1799 ) , which commandeered part of the palace for use as a military hospital .