serve canvas as an endpoint
This commit is contained in:
parent
afd5cd8441
commit
dcaa3da94f
@ -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')));
|
||||||
|
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user