Closed pfwd closed 2 years ago
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.
routes.json
An attempt was made to use path.join(__dirname, 'routes.json'), as the first argument to jsonServer.rewriter but this did not work.
path.join(__dirname, 'routes.json'),
jsonServer.rewriter
@pfwd Can work with this one
The following
in
should be replaced by the
routes.json
file.An attempt was made to use
path.join(__dirname, 'routes.json'),
as the first argument tojsonServer.rewriter
but this did not work.