summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/Project.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/Controller/Project.php b/app/Controller/Project.php
index 6356a9c6..ef9eac6b 100644
--- a/app/Controller/Project.php
+++ b/app/Controller/Project.php
@@ -406,6 +406,27 @@ class Project extends Base
}
/**
+ * RSS feed for a project
+ *
+ * @access public
+ */
+ public function feed()
+ {
+ $token = $this->request->getStringParam('token');
+ $project = $this->project->getByToken($token);
+
+ // Token verification
+ if (! $project) {
+ $this->forbidden(true);
+ }
+
+ $this->response->xml($this->template->load('project_feed', array(
+ 'events' => $this->project->getActivity($project['id']),
+ 'project' => $project,
+ )));
+ }
+
+ /**
* Activity page for a project
*
* @access public