2019-01-01 16:26:51 +00:00
|
|
|
const RTLConfController = require("../controllers/RTLConf");
|
|
|
|
const express = require("express");
|
|
|
|
const router = express.Router();
|
|
|
|
const authCheck = require("./authCheck");
|
|
|
|
|
2019-01-16 01:05:01 +00:00
|
|
|
router.get("/rtlconf", RTLConfController.getRTLConfig);
|
2019-01-01 16:26:51 +00:00
|
|
|
router.post("/", authCheck, RTLConfController.updateUISettings);
|
2019-01-19 03:04:16 +00:00
|
|
|
router.get("/config/:nodeType", authCheck, RTLConfController.getConfig);
|
2019-04-07 20:50:51 +00:00
|
|
|
router.post("/updateSelNode", RTLConfController.updateSelectedNode);
|
2019-11-15 05:58:00 +00:00
|
|
|
router.post("/updateDefaultNode", RTLConfController.updateDefaultNode);
|
2019-12-13 04:01:04 +00:00
|
|
|
router.get("/rates", RTLConfController.getCurrencyRates);
|
2019-01-01 16:26:51 +00:00
|
|
|
module.exports = router;
|