13 lines
354 B
JavaScript
13 lines
354 B
JavaScript
import express from 'express';
|
|
const router = express.Router();
|
|
import { submitFundDetails, getFundDetailsById } from '../controllers/fundDetails.js';
|
|
import { getAllFunds } from '../controllers/fundDetails.js';
|
|
|
|
|
|
router.post('/', submitFundDetails);
|
|
router.get("/allFunds", getAllFunds);
|
|
router.get("/:id", getFundDetailsById);
|
|
|
|
|
|
export default router;
|