mirror of
https://github.com/Ride-The-Lightning/RTL
synced 2024-10-31 09:20:27 +00:00
5107c300eb
2FA Fix
13 lines
415 B
TypeScript
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;
|