Created
June 18, 2020 16:33
-
-
Save srinivas69/457a1e2a72612b3a96d94c7522737563 to your computer and use it in GitHub Desktop.
open index ejs api
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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