J
J
jspie2017-04-13 17:41:29
JavaScript
jspie, 2017-04-13 17:41:29

Why does the shortened link have such an address and how to implement it?

I'm making a server and I ran into this problem: Routers are in a separate file Through these routers, I shorten links and return id, statistics, etc. The following address turns out: http://localhost:8080/url/USiKBSUH I think this is a bad option. Cannot be removed from router requests . The spa client and index.html are accessed through I noticed that, for example, the vk site shortens and gives the link in this form: Why is vk.cc used, and not ? And how to implement this in expressjs? Explain how everything works. app.use('/url', routerApi);
/url'*'
https://vk.cc/....https:/vk.com/....

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Pavlov, 2017-04-13
@jspie

Creating a URL Shortener with NodeJs, Express, and...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question