refactor(installation): improve allow installation guard
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import { Router } from 'express';
|
||||
import asyncHandler from 'express-async-handler';
|
||||
import { authorizeInstallation } from '../../../../helpers/authorize-installation.js';
|
||||
import { allowInstallation } from '../../../../helpers/allow-installation.js';
|
||||
import createUserAction from '../../../../controllers/api/v1/installation/users/create-user.js';
|
||||
|
||||
const router = Router();
|
||||
|
||||
router.post(
|
||||
'/',
|
||||
authorizeInstallation,
|
||||
allowInstallation,
|
||||
asyncHandler(createUserAction)
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user