Skip to content

Commit

Permalink
[refactor] remove escaping meta-characters as redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
sarkimillian committed Jan 30, 2025
1 parent 68ea1a6 commit 21e1740
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ app.post("/shorten", async (req, res) => {
res.redirect("/");
} catch (error) {
console.log("failed to get all urls. Error:", error);
res.status(500).send(`${error}`);
res.status(500).send(error);
}
});

Expand All @@ -52,7 +52,7 @@ app.post("/delete", async (req, res) => {
res.redirect("/");
} catch (error) {
console.log("failed to get all urls. Error:", error);
res.status(500).send(`${error}`);
res.status(500).send(error);
}
});
app.post("/:shortUrl", async (req, res) => {
Expand All @@ -61,7 +61,7 @@ app.post("/:shortUrl", async (req, res) => {
res.redirect("/");
} catch (error) {
console.log("failed to get all urls. Error:", error);
res.status(500).send(`${error}`);
res.status(500).send(error);
}
});
module.exports = app;

1 comment on commit 21e1740

@vercel
Copy link

@vercel vercel bot commented on 21e1740 Jan 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.