feat: add POST /api/v1/installation/users to seed user
This commit is contained in:
14
packages/backend/src/routes/api/v1/installation/users.js
Normal file
14
packages/backend/src/routes/api/v1/installation/users.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Router } from 'express';
|
||||
import asyncHandler from 'express-async-handler';
|
||||
import { authorizeInstallation } from '../../../../helpers/authorize-installation.js';
|
||||
import createUserAction from '../../../../controllers/api/v1/installation/users/create-user.js';
|
||||
|
||||
const router = Router();
|
||||
|
||||
router.post(
|
||||
'/',
|
||||
authorizeInstallation,
|
||||
asyncHandler(createUserAction)
|
||||
);
|
||||
|
||||
export default router;
|
Reference in New Issue
Block a user