mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-03-13 03:12:49 +01:00
13 lines
406 B
TypeScript
13 lines
406 B
TypeScript
|
import exprs from 'express';
|
||
|
const { Router } = exprs;
|
||
|
import { isAuthenticated } from '../../utils/authCheck.js';
|
||
|
import { listInvoices, getInvoice, addInvoice } from '../../controllers/lnd/invoices.js';
|
||
|
|
||
|
const router = Router();
|
||
|
|
||
|
router.get('/', isAuthenticated, listInvoices);
|
||
|
router.get('/:rHashStr', isAuthenticated, getInvoice);
|
||
|
router.post('/', isAuthenticated, addInvoice);
|
||
|
|
||
|
export default router;
|