Take enabled formats as api-middleware parameter