mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-06-14 10:14:29 +02:00
Added API for listing of scans
Added API support
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package controllers.api
|
||||
|
||||
|
||||
class ApiConfig(applications: Map[String, ApiApplication]){
|
||||
def getApplication(appName: String, appToken: String): Option[AuthenticatedApiApplication] = for{
|
||||
app <- applications.get(appName)
|
||||
authenticatedApp <- app.authenticate(appToken)
|
||||
} yield authenticatedApp
|
||||
}
|
||||
Reference in New Issue
Block a user