mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-20 13:27:56 +02:00
13 lines
495 B
TypeScript
13 lines
495 B
TypeScript
import exprs from 'express';
|
|
const { Router } = exprs;
|
|
import { isAuthenticated } from '../../utils/authCheck.js';
|
|
import { decodePayment, signMessage, verifyMessage, listConfigs } from '../../controllers/cln/utility.js';
|
|
|
|
const router = Router();
|
|
|
|
router.post('/decode', isAuthenticated, decodePayment);
|
|
router.post('/sign', isAuthenticated, signMessage);
|
|
router.post('/verify', isAuthenticated, verifyMessage);
|
|
router.get('/listConfigs', isAuthenticated, listConfigs);
|
|
|
|
export default router;
|