mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-22 17:19:51 +01:00
Added API for listing of scans
Added API support
This commit is contained in:
11
app/controllers/api/ApiResources.scala
Normal file
11
app/controllers/api/ApiResources.scala
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user