Ride-The-Lightning-RTL/routes/RTLConf.js
ShahanaFarooqui c6f6798882 MultiNode Backend Complete
MultiNode Backend Complete
2019-04-06 20:20:40 -04:00

12 lines
473 B
JavaScript

const RTLConfController = require("../controllers/RTLConf");
const express = require("express");
const router = express.Router();
const authCheck = require("./authCheck");
router.get("/rtlconf", RTLConfController.getRTLConfig);
router.post("/", authCheck, RTLConfController.updateUISettings);
router.get("/config/:nodeType", authCheck, RTLConfController.getConfig);
router.post("/updateSelNode", authCheck, RTLConfController.updateSelectedNode);
module.exports = router;