mirror of
https://github.com/Ride-The-Lightning/RTL
synced 2024-11-15 18:13:00 +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;
|