Show channel on the map in channel page

This commit is contained in:
nymkappa
2022-08-10 16:00:12 +02:00
parent 7012a480e8
commit db41aed44b
5 changed files with 91 additions and 8 deletions

View File

@@ -32,6 +32,9 @@ class ChannelsRoutes {
res.status(404).send('Channel not found');
return;
}
res.header('Pragma', 'public');
res.header('Cache-control', 'public');
res.setHeader('Expires', new Date(Date.now() + 1000 * 60).toUTCString());
res.json(channel);
} catch (e) {
res.status(500).send(e instanceof Error ? e.message : e);