linkShortener: Add a link in the list too

This commit is contained in:
divlo
2020-08-04 11:36:20 +02:00
parent d8137a8c5b
commit 3877e974c5
2 changed files with 39 additions and 13 deletions

View File

@ -79,7 +79,8 @@ exports.postLink = async (req, res, next) => {
const shortcutLinkResult = `${shortLinkBaseURL}/${result.shortcut}`
return res.status(200).json({
resultHTML: `URL Raccourcie : <br/> <br/> <a target="_blank" rel="noopener noreferrer" href="${shortcutLinkResult}">${shortcutLinkResult}</a>`,
result: shortcutLinkResult
result: shortcutLinkResult,
linkDatabase: result
})
} catch (error) {
console.log(error)