Move diary export to the public controller