rest: install middleware dir
rest: add /v3/sessions_by_uuid/:uuid