switched to restcontroller with auto generated routes