Read the guideline before start
Write a server that reads request url and query and returns a JSON with
parts- an array ofpathnameparts (/hello/world/123gives['hello', 'world', '123'], but doubled slashes should be ignored//hello/world/123gives['hello', 'world', '123']as well)query- an object with key/value pairs of all queryParams
GET /hello/world/123?x=1&search=some
{
"parts": ["hello", "world", "123"],
"query": {
"x": "1",
"search": "some"
}
}