fix to rest controller - needed to be set as separate class!

Signed-off-by: status418 <mjsilvi@gmail.com>