Skip to content

Instantly share code, notes, and snippets.

@srinivas69
Created June 18, 2020 16:33
Show Gist options
  • Save srinivas69/457a1e2a72612b3a96d94c7522737563 to your computer and use it in GitHub Desktop.
Save srinivas69/457a1e2a72612b3a96d94c7522737563 to your computer and use it in GitHub Desktop.
open index ejs api
app.get('/', open_index_page);//call for main index page
function open_index_page(req, res, next){
if(req.method == "GET"){
res.render('index.ejs');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment