feat: Implement get paddle info API endpoint

This commit is contained in:
Faruk AYDIN
2024-02-22 20:22:05 +01:00
parent d21e1f75b5
commit 6fdc4bf900
4 changed files with 60 additions and 0 deletions

View File

@@ -2,9 +2,11 @@ import { Router } from 'express';
import { authenticateUser } from '../../../helpers/authentication.js';
import checkIsCloud from '../../../helpers/check-is-cloud.js';
import getPlansAction from '../../../controllers/api/v1/payment/get-plans.ee.js';
import getPaddleInfoAction from '../../../controllers/api/v1/payment/get-paddle-info.ee.js';
const router = Router();
router.get('/plans', authenticateUser, checkIsCloud, getPlansAction);
router.get('/paddle-info', authenticateUser, checkIsCloud, getPaddleInfoAction);
export default router;