Skip to content

snezhana-recruit/node_params-server

 
 

Repository files navigation

Params echo server

Read the guideline before start

Write a server that reads request url and query and returns a JSON with

  • parts - an array of pathname parts (/hello/world/123 gives ['hello', 'world', '123'], but doubled slashes should be ignored //hello/world/123 gives ['hello', 'world', '123'] as well)
  • query - an object with key/value pairs of all queryParams

Examples

GET /hello/world/123?x=1&search=some
{
  "parts": ["hello", "world", "123"],
  "query": {
    "x": "1",
    "search": "some"
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%