mirror of
https://github.com/Ride-The-Lightning/RTL
synced 2024-10-31 09:20:27 +00:00
aac9d42bb4
Channel restore
12 lines
559 B
JavaScript
12 lines
559 B
JavaScript
const ChannelsBackupController = require("../../controllers/lnd/channelsBackup");
|
|
const express = require("express");
|
|
const router = express.Router();
|
|
const authCheck = require("../authCheck");
|
|
|
|
router.get("/:channelPoint", authCheck, ChannelsBackupController.getBackup);
|
|
router.get("/restore/list", authCheck, ChannelsBackupController.getRestoreList);
|
|
router.post("/verify/:channelPoint", authCheck, ChannelsBackupController.postBackupVerify);
|
|
router.post("/restore/:channelPoint", authCheck, ChannelsBackupController.postRestore);
|
|
|
|
module.exports = router;
|