unify osc and http validateSubscriptionEntry

This commit is contained in:
arc-alex
2023-11-04 20:32:30 +01:00
parent 563ea92a3b
commit 2b87f72acb
3 changed files with 11 additions and 28 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ import {
import {
validateAliases,
validateOSC,
validateOscSubscription,
validateSubscription,
validateSettings,
validateUserFields,
viewValidator,
@@ -74,7 +74,7 @@ router.get('/osc', getOSC);
router.post('/osc', validateOSC, postOSC);
// create route between controller and '/ontime/osc-subscriptions' endpoint
router.post('/osc-subscriptions', validateOscSubscription, postOscSubscriptions);
router.post('/osc-subscriptions', validateSubscription, postOscSubscriptions);
// create route between controller and '/ontime/new' endpoint
router.post('/new', projectSanitiser, postNew);