Add single event page

This commit is contained in:
2022-07-25 00:51:20 +00:00
parent 5cdf43c845
commit 37e77d3405
4 changed files with 131 additions and 0 deletions

View File

@@ -41,4 +41,6 @@ export interface Event {
};
start: string;
end?: string;
location?: string;
notes?: string;
}

View File

@@ -33,4 +33,8 @@ payload.init({
app.use(express.static(path.join(__dirname, '../public')));
app.get(/^\/[0-9a-fA-F]{24}$/, (req, res) => {
res.redirect(`/single.html?event=${req.path.split('/')[1]}`);
});
app.listen(process.env.LISTEN_PORT);