Skip to content

Commit c2def2b

Browse files
committed
add view engine and define static path
1 parent 75bf8df commit c2def2b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app.js

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ var app = express();
44

55
var port = process.env.PORT || 3000;
66

7+
app.use('/assets/', app.static(__dirname + '/public'));
8+
9+
app.set('view engine', 'ejs');
10+
711
app.get('/', function(req, res){
812
res.send('Hello');
913
});

0 commit comments

Comments
 (0)