Converted them to a rest controller