mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2024-11-19 09:50:36 +01:00
475b47b7ea
c-lightning-REST to clnrest migration.
10 lines
391 B
JavaScript
10 lines
391 B
JavaScript
import exprs from 'express';
|
|
const { Router } = exprs;
|
|
import { isAuthenticated } from '../../utils/authCheck.js';
|
|
import { getPeers, postPeer, deletePeer } from '../../controllers/cln/peers.js';
|
|
const router = Router();
|
|
router.get('/', isAuthenticated, getPeers);
|
|
router.post('/', isAuthenticated, postPeer);
|
|
router.post('/disconnect/', isAuthenticated, deletePeer);
|
|
export default router;
|