Updated health middleware to accept enable and disable requests