Add single event page
This commit is contained in:
@@ -41,4 +41,6 @@ export interface Event {
|
||||
};
|
||||
start: string;
|
||||
end?: string;
|
||||
location?: string;
|
||||
notes?: string;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user