UNPKG

@overture-stack/lyric

Version:
13 lines (12 loc) 551 B
import { json, Router, urlencoded } from 'express'; import auditController from '../controllers/auditController.js'; import { authMiddleware } from '../middleware/auth.js'; const router = ({ baseDependencies, authConfig, }) => { const router = Router(); router.use(urlencoded({ extended: false })); router.use(json()); router.use(authMiddleware(authConfig)); router.get('/category/:categoryId/organization/:organization', auditController(baseDependencies).byCategoryIdAndOrganization); return router; }; export default router;