add restful controller