I’m working on ejs express project and why when i set url to route handler like /contract ejs is being rendered properly but when i set api like /all-org/contracts is not rendring properly.
My routes are
`
route.get('/all-org/contracts', (req, res) => {
res.render('org-contracts', { title: 'Org Contracts', layout: checkRole });
});`route.get('/contracts', (req, res) => {
res.render('org-contracts', { title: 'Org Contracts', layout: checkRole });
});
I tried so many times and asked copilot but cannot find any solution
New contributor
Asadbek Asadbek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.