You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so about 40 lines here are using the same functionality with a slight difference in the filenames, we could improve that by making 1 function that handles all the cases
example
// router.jsif(Url==='/User'){serveHtml(request,response,'user')// the third argument is the html file name so in the serveHtml function // you can do something like thisconstfilepath=path.join(__dirname,'..','public',`${name}.html`);}
The text was updated successfully, but these errors were encountered:
so about 40 lines here are using the same functionality with a slight difference in the filenames, we could improve that by making 1 function that handles all the cases
example
The text was updated successfully, but these errors were encountered: