2022-05-16 18:45:41 +00:00
|
|
|
import exprs from 'express';
|
|
|
|
const { Router } = exprs;
|
|
|
|
import { isAuthenticated } from '../../utils/authCheck.js';
|
2023-12-06 04:32:05 +00:00
|
|
|
import { decodePayment, signMessage, verifyMessage, listConfigs } from '../../controllers/cln/utility.js';
|
2022-05-16 18:45:41 +00:00
|
|
|
|
|
|
|
const router = Router();
|
|
|
|
|
2023-12-06 04:32:05 +00:00
|
|
|
router.post('/decode', isAuthenticated, decodePayment);
|
2022-05-16 18:45:41 +00:00
|
|
|
router.post('/sign', isAuthenticated, signMessage);
|
|
|
|
router.post('/verify', isAuthenticated, verifyMessage);
|
|
|
|
router.get('/listConfigs', isAuthenticated, listConfigs);
|
|
|
|
|
|
|
|
export default router;
|