mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
13 lines
484 B
TypeScript
13 lines
484 B
TypeScript
import exprs from 'express';
|
|
const { Router } = exprs;
|
|
import { isAuthenticated } from '../../utils/authCheck.js';
|
|
import { getRoute, listChannels, feeRates, listNodes } from '../../controllers/cln/network.js';
|
|
|
|
const router = Router();
|
|
|
|
router.post('/listNodes', isAuthenticated, listNodes);
|
|
router.post('/getRoute', isAuthenticated, getRoute);
|
|
router.post('/feeRates', isAuthenticated, feeRates);
|
|
router.post('/listChannels', isAuthenticated, listChannels);
|
|
|
|
export default router;
|