mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
12 lines
418 B
TypeScript
12 lines
418 B
TypeScript
import exprs from 'express';
|
|
const { Router } = exprs;
|
|
import { isAuthenticated } from '../../utils/authCheck.js';
|
|
import { getNewAddress, onChainWithdraw, getUTXOs } from '../../controllers/cln/onchain.js';
|
|
|
|
const router = Router();
|
|
|
|
router.post('/', isAuthenticated, onChainWithdraw);
|
|
router.post('/newaddr', isAuthenticated, getNewAddress);
|
|
router.get('/utxos/', isAuthenticated, getUTXOs);
|
|
|
|
export default router;
|