Create routes and actions for events