Skip to content

Replace jsonServer.rewriter data with routes.json  #27

@pfwd

Description

@pfwd

The following

{
    '/quiz/:slug': '/quiz?slug=:slug'
}

in

server.use(jsonServer.rewriter({
    '/quiz/:slug': '/quiz?slug=:slug'
}))

should be replaced by the routes.json file.

An attempt was made to use path.join(__dirname, 'routes.json'), as the first argument to jsonServer.rewriter but this did not work.

Metadata

Metadata

Assignees

Labels

api clientAny thing to do with the API ClientbugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions