Added API for listing of scans

Added API support
This commit is contained in:
Šesták Vít
2017-01-31 09:31:21 +01:00
parent cd37dda90c
commit e4b382024d
10 changed files with 144 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
package controllers.api
trait ApiResources {
val ProjectTable = ApiResource("project-table")
}
object ApiResources extends ApiResources{
val All = Set(ProjectTable)
private val AllByName = All.map(res => res.name -> res).toMap
def byName(name: String): Option[ApiResource] = AllByName.get(name)
}