mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-01-18 01:27:45 +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 =>
|
||||
loadSnoozes() flatMap { snoozes =>
|
||||
indexPage(versions)(snoozes, securedRequestToUserAwareRequest(req))
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user