Initial
This commit is contained in:
13
server/routes/runPlanRoutes.js
Normal file
13
server/routes/runPlanRoutes.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Router } from 'express';
|
||||
import { create, destroy, execute, index, show, update } from '../controllers/runPlanController.js';
|
||||
import { requireAuth } from '../middleware/auth.js';
|
||||
|
||||
export const runPlanRoutes = Router();
|
||||
|
||||
// RunPlan metadata is CRUD; execution is an explicit action endpoint.
|
||||
runPlanRoutes.get('/', requireAuth, index);
|
||||
runPlanRoutes.post('/', requireAuth, create);
|
||||
runPlanRoutes.get('/:id', requireAuth, show);
|
||||
runPlanRoutes.put('/:id', requireAuth, update);
|
||||
runPlanRoutes.delete('/:id', requireAuth, destroy);
|
||||
runPlanRoutes.post('/:id/execute', requireAuth, execute);
|
||||
Reference in New Issue
Block a user