Skip to content

Commit fff391c

Browse files
Update url.js
1 parent 0082c7d commit fff391c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/url.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async function handleGenerateShortURl(req, res) {
1111
const shortID = shortid.generate(7);
1212
//session-based storage for URLs when a user is not logged in:
1313
let createdby=req.user ? req.user._id : req.cookies?.uid;
14-
const qrCodeData = await qrcode.toDataURL(`http://localhost:8001/<%= ${shortID} %>`);
14+
const qrCodeData = await qrcode.toDataURL(`http://darkurl.onrender.com/<%= ${shortID} %>`);
1515
await URL.create({
1616
shortId: shortID,
1717
redirectURL: body.url,

0 commit comments

Comments
 (0)