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