Message module (index) and prototype for Rest func