diff --git a/app.js b/app.js index 2dc78f0..2e781ce 100644 --- a/app.js +++ b/app.js @@ -50,6 +50,10 @@ async function main() { } })); + app.get('/', (req, res) => { + return res.render('index'); + }); + // If the request gets to the bottom of the route stack, it doesn't // have a defined route and therefore a HTTP status code 404 is sent // and an error page shown diff --git a/views/pages/index.ejs b/views/pages/index.ejs new file mode 100644 index 0000000..a0ed0d2 --- /dev/null +++ b/views/pages/index.ejs @@ -0,0 +1,9 @@ + + + + <%- include('../partials/head', { title: 'Stratos - Home' }) %> + + +

Homepage

+ +