R server REST controller