Added AJAX endpoint decorator.