mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-03-12 18:48:09 +01:00
11 lines
625 B
JavaScript
11 lines
625 B
JavaScript
import exprs from 'express';
|
|
const { Router } = exprs;
|
|
import { isAuthenticated } from '../../utils/authCheck.js';
|
|
import { queryPaymentRoute, decodePayment, getSentPaymentsInformation, postPayment, sendPaymentToRoute } from '../../controllers/eclair/payments.js';
|
|
const router = Router();
|
|
router.get('/route/', isAuthenticated, queryPaymentRoute);
|
|
router.get('/decode/:invoice', isAuthenticated, decodePayment);
|
|
router.post('/getsentinfos', isAuthenticated, getSentPaymentsInformation);
|
|
router.post('/sendtoroute', isAuthenticated, sendPaymentToRoute);
|
|
router.post('/', isAuthenticated, postPayment);
|
|
export default router;
|