DEV Community

loading...

Discussion on: Building URL Shortener with MongoDB, Express Framework And TypeScript

Collapse
fcpauldiaz profile image
Pablo Díaz Márquez

URL collision should be checked ?

Collapse
itachiuchiha profile image
Itachi Uchiha Author

Yes, I think it must be checked. But in this example, I didn’t because I didn’t want to long post 🤓

Collapse
idangozlan profile image
Idan Gozlan

It's just another 4 lines of code.... I think you should add it

Thread Thread
itachiuchiha profile image
Itachi Uchiha Author

Ah, I didn't update the post. Someone sent a pull request to repo. I will add :)