mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-18 21:54:09 +00:00
feat: automation service
This commit is contained in:
committed by
Carlos Valente
parent
a8fe4c8e68
commit
05e61e7bf8
@@ -0,0 +1,37 @@
|
||||
import express from 'express';
|
||||
|
||||
import {
|
||||
deleteAutomation,
|
||||
deleteBlueprint,
|
||||
editBlueprint,
|
||||
getAutomationSettings,
|
||||
postAutomation,
|
||||
postBlueprint,
|
||||
putAutomation,
|
||||
postAutomationSettings,
|
||||
testOutput,
|
||||
} from './automation.controller.js';
|
||||
import {
|
||||
paramContainsId,
|
||||
validateAutomation,
|
||||
validateAutomationPatch,
|
||||
validateAutomationSettings,
|
||||
validateBlueprint,
|
||||
validateBlueprintPatch,
|
||||
validateTestPayload,
|
||||
} from './automation.validation.js';
|
||||
|
||||
export const router = express.Router();
|
||||
|
||||
router.get('/', getAutomationSettings);
|
||||
router.post('/', validateAutomationSettings, postAutomationSettings);
|
||||
|
||||
router.post('/automation', validateAutomation, postAutomation);
|
||||
router.put('/automation/:id', validateAutomationPatch, putAutomation);
|
||||
router.delete('/automation/:id', paramContainsId, deleteAutomation);
|
||||
|
||||
router.post('/blueprint', validateBlueprint, postBlueprint);
|
||||
router.put('/blueprint/:id', validateBlueprintPatch, editBlueprint);
|
||||
router.delete('/blueprint/:id', paramContainsId, deleteBlueprint);
|
||||
|
||||
router.post('/test', validateTestPayload, testOutput);
|
||||
Reference in New Issue
Block a user