@@ -5,15 +5,16 @@ const {partsScan} = require('../parts-scan/parts-scan');
|
||||
const eventAuthorizationMiddleware = require('../middleware/eventAuthorizationMIddleware');
|
||||
const validateFirebaseIdTokenMiddleware = require("../middleware/validateFirebaseIdTokenMiddleware");
|
||||
const {totals, statustransition, totalsSsu, costing, lifecycle, costingmulti} = require("../job/job");
|
||||
const withUserGraphQLClientMiddleware = require("../middleware/withUserGraphQLClientMiddleware");
|
||||
|
||||
router.use(validateFirebaseIdTokenMiddleware);
|
||||
|
||||
router.post('/totals', totals);
|
||||
router.post('/totals', withUserGraphQLClientMiddleware, totals);
|
||||
router.post('/statustransition', eventAuthorizationMiddleware, statustransition);
|
||||
router.post('/totalsssu', totalsSsu);
|
||||
router.post('/costing', costing);
|
||||
router.get('/lifecycle', lifecycle);
|
||||
router.post('/costingmulti', costingmulti);
|
||||
router.post('/partsscan', partsScan);
|
||||
router.post('/totalsssu', withUserGraphQLClientMiddleware,totalsSsu);
|
||||
router.post('/costing', withUserGraphQLClientMiddleware,costing);
|
||||
router.get('/lifecycle', withUserGraphQLClientMiddleware, lifecycle);
|
||||
router.post('/costingmulti', withUserGraphQLClientMiddleware, costingmulti);
|
||||
router.post('/partsscan', withUserGraphQLClientMiddleware, partsScan);
|
||||
|
||||
module.exports = router;
|
||||
|
||||
Reference in New Issue
Block a user