Skip to content

Commit

Permalink
Added a feed controller for RSS and iTunes redirects.
Browse files Browse the repository at this point in the history
  • Loading branch information
keyvan committed Aug 24, 2015
1 parent a24b47b commit 964fcd2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/controllers/Feed.scala
@@ -0,0 +1,14 @@
package controllers

import play.api.mvc._

class Feed extends Controller {

def rss = Action {
Ok(views.html.home("Your new application is ready."))
}

def itunes = Action {
Redirect("http://www.google.com?fornow=true", 302)
}
}
4 changes: 4 additions & 0 deletions conf/routes
Expand Up @@ -5,5 +5,9 @@
# Home page
GET / controllers.Home.index

# Feeds
GET /feed/rss controllers.Feed.rss
GET /feed/itunes controllers.Feed.itunes

# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.versioned(path="/public", file: Asset)

0 comments on commit 964fcd2

Please sign in to comment.