I'm trying to render the profile.ejs page, but it show the error of "Internal server error".
Status Code:500 Internal Server Error.
var express = require('express');
var app = express();
app.set('view engine', 'ejs');
app.get('/',function(req, res){
res.sendFile(__dirname + '/index.html');
});
app.get('/profile/:id',function(req, res){
res.render('profile');
});
app.listen(3000);
via ProgSMI
No comments:
Post a Comment