Initial
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Router } from 'express';
|
||||
import { create, destroy, execute, index, show, update } from '../controllers/runPlanController.js';
|
||||
import { compatibility, create, destroy, execute, index, show, update } from '../controllers/runPlanController.js';
|
||||
import { requireAuth } from '../middleware/auth.js';
|
||||
|
||||
export const runPlanRoutes = Router();
|
||||
@@ -8,6 +8,7 @@ export const runPlanRoutes = Router();
|
||||
runPlanRoutes.get('/', requireAuth, index);
|
||||
runPlanRoutes.post('/', requireAuth, create);
|
||||
runPlanRoutes.get('/:id', requireAuth, show);
|
||||
runPlanRoutes.get('/:id/compatibility', requireAuth, compatibility);
|
||||
runPlanRoutes.put('/:id', requireAuth, update);
|
||||
runPlanRoutes.delete('/:id', requireAuth, destroy);
|
||||
runPlanRoutes.post('/:id/execute', requireAuth, execute);
|
||||
|
||||
Reference in New Issue
Block a user