Read the guideline before start
Write a server that reads request url and query and returns a JSON with
parts
- an array ofpathname
parts (/hello/world/123
gives['hello', 'world', '123']
)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"
}
}