From 862de83721b31af61df7bbfc653fd1a38925feb1 Mon Sep 17 00:00:00 2001 From: Alan Grainger Date: Wed, 30 Oct 2024 15:43:07 +0100 Subject: [PATCH] Update docs --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index 7862ed1..a0c65cf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,7 +8,9 @@ import { Request } from 'express-serve-static-core' require('dotenv').config() const app = express() +// Add the EJS view engine, to render the gallery page app.set('view engine', 'ejs') +// Serve static assets from the /public folder app.use(express.static('public')) // An incoming request for a shared link