mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-04-10 11:03:48 +02:00
Added API for listing of scans
Added API support
This commit is contained in:
5
app/controllers/api/AuthenticatedApiApplication.scala
Normal file
5
app/controllers/api/AuthenticatedApiApplication.scala
Normal file
@@ -0,0 +1,5 @@
|
||||
package controllers.api
|
||||
|
||||
class AuthenticatedApiApplication(resources: Set[ApiResource]) {
|
||||
def isAllowed(resource: ApiResource): Boolean = resources contains resource
|
||||
}
|
||||
Reference in New Issue
Block a user