Define action for single-task route