mirror of
https://github.com/directus/directus.git
synced 2026-02-19 05:14:28 -05:00
@@ -3,9 +3,12 @@ import asyncHandler from 'express-async-handler';
|
||||
import PresetsService from '../services/presets';
|
||||
import MetaService from '../services/meta';
|
||||
import { ForbiddenException } from '../exceptions';
|
||||
import useCollection from '../middleware/use-collection';
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
router.use(useCollection('directus_presets'));
|
||||
|
||||
router.post(
|
||||
'/',
|
||||
asyncHandler(async (req, res, next) => {
|
||||
|
||||
Reference in New Issue
Block a user