Use a controller class instead of directly putting logic in the routes file. Add a dummy Notifier class to avoid errors.