mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 23:30:10 +00:00
21 lines
546 B
TypeScript
Executable File
21 lines
546 B
TypeScript
Executable File
import BackendAPI from '../Utils/api';
|
|
|
|
import ApplicationSecurity from './applicationSecurity';
|
|
|
|
export default {
|
|
runApplicationScan: async function (): void {
|
|
const securities = await BackendAPI.get(
|
|
'application/applicationSecurities'
|
|
);
|
|
if (securities && securities.length > 0) {
|
|
await Promise.all(
|
|
securities.map((security: $TSFixMe) => {
|
|
return ApplicationSecurity.scan(security);
|
|
})
|
|
);
|
|
}
|
|
|
|
return;
|
|
},
|
|
};
|