mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-28 12:02:00 +01:00
Changed homepage to something more friendly.
This commit is contained in:
@@ -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 =>
|
def index(versions: Map[String, Int]) = ReadAction.async{ implicit req =>
|
||||||
loadSnoozes() flatMap { snoozes =>
|
loadSnoozes() flatMap { snoozes =>
|
||||||
indexPage(versions)(snoozes, securedRequestToUserAwareRequest(req))
|
indexPage(versions)(snoozes, securedRequestToUserAwareRequest(req))
|
||||||
|
|||||||
@@ -3,7 +3,8 @@
|
|||||||
# ~~~~
|
# ~~~~
|
||||||
|
|
||||||
# Home page
|
# 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 /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 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)
|
GET /dependencies/classified controllers.Application.dependencies(classified: Option[Boolean] = Some(true), requiredTags: Seq[Int] ?= Seq(), noTag: Boolean ?= false)
|
||||||
|
|||||||
Reference in New Issue
Block a user