added domain stuff a.k.a. goddamit I'm dumb

pull/12/head
tycrek 3 years ago
parent 9a04ba9369
commit 0effd769d2
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -1 +1,2 @@
PORT=40115
PORT=40115
DOMAIN=localhost

@ -57,7 +57,7 @@ function startup() {
data[resourceId] = req.file;
saveData(data);
res.type('json').send({ resource: `http://lh:${process.env.PORT}/${resourceId}`, delete: `http://lh:${process.env.PORT}/delete/${req.file.filename}` });
res.type('json').send({ resource: `http://${process.env.DOMAIN}:${process.env.PORT}/${resourceId}`, delete: `http://${process.env.DOMAIN}:${process.env.PORT}/delete/${req.file.filename}` });
});
// View file

Loading…
Cancel
Save