Ride-The-Lightning-RTL/routes/lnd/peers.js

11 lines
382 B
JavaScript
Raw Normal View History

const PeersController = require("../../controllers/lnd/peers");
2018-09-15 03:31:01 +02:00
const express = require("express");
const router = express.Router();
const authCheck = require("../authCheck");
2018-09-15 03:31:01 +02:00
2019-01-01 17:26:51 +01:00
router.get("/", authCheck, PeersController.getPeers);
router.post("/", authCheck, PeersController.postPeer);
router.delete("/:peerPubKey", authCheck, PeersController.deletePeer);
2018-09-15 03:31:01 +02:00
module.exports = router;