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