express response format type detection based on path extension