refactor: clean code (#7542)

* add issue bot for prs

* Update CHANGELOG.md

* Update issue-bot.yml

* reformat code
This commit is contained in:
Manuel
2021-09-03 01:23:15 +02:00
committed by GitHub
parent 6ad3e6f8ad
commit 27832453e2
3 changed files with 23 additions and 17 deletions

View File

@@ -4,10 +4,12 @@ import CheckRunner from '../Security/CheckRunner';
export class SecurityRouter extends PromiseRouter {
mountRoutes() {
this.route('GET', '/security',
this.route(
'GET',
'/security',
middleware.promiseEnforceMasterKeyAccess,
this._enforceSecurityCheckEnabled,
async (req) => {
async req => {
const report = await new CheckRunner(req.config.security).run();
return {
status: 200,