mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
@@ -3,9 +3,12 @@ import asyncHandler from 'express-async-handler';
|
||||
import WebhooksService from '../services/webhooks';
|
||||
import MetaService from '../services/meta';
|
||||
import { ForbiddenException } from '../exceptions';
|
||||
import useCollection from '../middleware/use-collection';
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
router.use(useCollection('directus_webhooks'));
|
||||
|
||||
router.post(
|
||||
'/',
|
||||
asyncHandler(async (req, res, next) => {
|
||||
|
||||
Reference in New Issue
Block a user