Changed homepage to something more friendly.

This commit is contained in:
Šesták Vít
2017-01-06 12:22:22 +01:00
parent 951d62d1cf
commit e25e67c9f0
2 changed files with 6 additions and 1 deletions

View File

@@ -88,6 +88,10 @@ class Application @Inject() (
}
}
def homepage() = Action{
Redirect(routes.Statistics.vulnerableLibraries(None))
}
def index(versions: Map[String, Int]) = ReadAction.async{ implicit req =>
loadSnoozes() flatMap { snoozes =>
indexPage(versions)(snoozes, securedRequestToUserAwareRequest(req))

View File

@@ -3,7 +3,8 @@
# ~~~~
# Home page
GET / controllers.Application.index(versions: Map[String, Int] = Map())
GET / controllers.Application.homepage()
GET /status controllers.Application.index(versions: Map[String, Int] = Map())
GET /versions controllers.Application.index(versions: Map[String, Int])
GET /dependencies controllers.Application.dependencies(classified: Option[Boolean] = None, requiredTags: Seq[Int] ?= Seq(), noTag: Boolean ?= false)
GET /dependencies/classified controllers.Application.dependencies(classified: Option[Boolean] = Some(true), requiredTags: Seq[Int] ?= Seq(), noTag: Boolean ?= false)