2
0
mirror of https://github.com/Ride-The-Lightning/RTL synced 2024-10-31 09:20:27 +00:00
RTL/server/routes/lnd/invoices.ts
ShahanaFarooqui 5107c300eb 2FA Fix
2FA Fix
2022-12-27 18:05:42 -08:00

13 lines
415 B
TypeScript

import * as exprs from 'express';
const { Router } = exprs;
import { isAuthenticated } from '../../utils/authCheck.js';
import { listInvoices, invoiceLookup, addInvoice } from '../../controllers/lnd/invoices.js';
const router = Router();
router.get('/', isAuthenticated, listInvoices);
router.get('/lookup/', isAuthenticated, invoiceLookup);
router.post('/', isAuthenticated, addInvoice);
export default router;