We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0082c7d commit fff391cCopy full SHA for fff391c
controllers/url.js
@@ -11,7 +11,7 @@ async function handleGenerateShortURl(req, res) {
11
const shortID = shortid.generate(7);
12
//session-based storage for URLs when a user is not logged in:
13
let createdby=req.user ? req.user._id : req.cookies?.uid;
14
- const qrCodeData = await qrcode.toDataURL(`http://localhost:8001/<%= ${shortID} %>`);
+ const qrCodeData = await qrcode.toDataURL(`http://darkurl.onrender.com/<%= ${shortID} %>`);
15
await URL.create({
16
shortId: shortID,
17
redirectURL: body.url,
0 commit comments