ZijianHe / koa-router

Router middleware for koa.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

One problem with Router.url()

yinyukang-cuc opened this issue · comments

When run the following code ,the result is not the same as it:

const url = Router.url('/users/:id', {id: 1}, {query: { active: true }});

Expected Result:

// => "/users/1?active=true"

Actual Result:

/users/1