2024-10-21 14:21:48 +00:00
|
|
|
import express from 'express';
|
|
|
|
const router = express.Router();
|
|
|
|
import { submitFundDetails, getFundDetailsById } from '../controllers/fundDetails.js';
|
2024-10-22 18:43:17 +00:00
|
|
|
import { getAllFunds } from '../controllers/fundDetails.js';
|
2024-10-21 14:21:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
router.post('/', submitFundDetails);
|
2024-10-22 18:43:17 +00:00
|
|
|
router.get("/allFunds", getAllFunds);
|
2024-10-21 14:21:48 +00:00
|
|
|
router.get("/:id", getFundDetailsById);
|
|
|
|
|
2024-10-22 18:43:17 +00:00
|
|
|
|
2024-10-21 14:21:48 +00:00
|
|
|
export default router;
|