serve canvas as an endpoint

This commit is contained in:
Evert Prants 2022-04-02 17:46:41 +03:00
parent afd5cd8441
commit dcaa3da94f
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -102,6 +102,10 @@ app.get('/info', checkAuth, (req, res) => {
res.json(req.user); res.json(req.user);
}); });
app.use('/canvas.png', (req, res) =>
res.sendFile(join(__dirname, '..', '..', 'canvas.png')),
);
app.use(express.static(join(__dirname, '..', 'public'))); app.use(express.static(join(__dirname, '..', 'public')));
/// ///