suppose we have this URL "/user/id" .
let url = "/user/id"
so I need to split this urls and make an individual url . somethig like this:
["/", "/user", "/user/id"]
I can split this with .split("/").I think I need some forEach() after spliting but I cant get it right.