mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-02 00:59:29 +00:00
Set up homepage template and route
This commit is contained in:
4
app.js
4
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
|
// 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
|
// have a defined route and therefore a HTTP status code 404 is sent
|
||||||
// and an error page shown
|
// and an error page shown
|
||||||
|
|||||||
9
views/pages/index.ejs
Normal file
9
views/pages/index.ejs
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<%- include('../partials/head', { title: 'Stratos - Home' }) %>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Homepage</h1>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user