Implement atom feeds

This commit is contained in:
kaakaa
2014-03-08 23:43:23 +09:00
parent ec0c964ceb
commit 3bff6a1949
6 changed files with 46 additions and 0 deletions

View File

@@ -46,6 +46,11 @@ trait IndexControllerBase extends ControllerBase {
redirect("/")
}
get("/activities.atom"){
contentType = "application/atom+xml; type=feed"
xml.feed(getRecentActivities())
}
/**
* Set account information into HttpSession and redirect.
*/