Created tweet controller and function