mirror of
https://github.com/len0rd/personal-website.git
synced 2026-01-20 16:50:43 -05:00
the start of something new
This commit is contained in:
commit
a80122b24e
6 changed files with 68 additions and 0 deletions
17
server.js
Normal file
17
server.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
var express = require('express');
|
||||
var app = express();
|
||||
|
||||
// set the view engine to ejs
|
||||
app.set('view engine', 'ejs');
|
||||
|
||||
// use res.render to load an ejs view file
|
||||
|
||||
app.get('/', function(req, res) {
|
||||
res.render('pages/index');
|
||||
});
|
||||
|
||||
app.get('/about', function(req, res) {
|
||||
res.render('pages/about');
|
||||
});
|
||||
|
||||
app.listen(8080);
|
||||
Loading…
Add table
Add a link
Reference in a new issue