Refactor routes and views for improved clarity and functionality
- Commented out console log in the home route to reduce clutter in logs. - Updated formatting and consistency in the sites route, including removing unused domain fetching functionality. - Added form action to the add-form view for submitting new sites, ensuring the input field is properly named for backend processing.
This commit is contained in:
@@ -6,7 +6,7 @@ const sitesModel = new SiteModel();
|
||||
/* GET home page. */
|
||||
router.get('/', async function(req, res, next) {
|
||||
const sites = await sitesModel.getAll();
|
||||
console.log('Sites:', sites);
|
||||
// console.log('Sites:', sites);
|
||||
res.render('index', { title: 'Playwright Testing Dashboard', sites: sites });
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user