created assets controller and designed it as a REST resource