Make base REST controller, for simple implementation of new controllers.