beer api controller must inherit from application controller.