Skip to content

Commit

Permalink
fix: version 2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hg-pyun committed Nov 7, 2021
1 parent 9d5cc57 commit 66bdfff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ app.use(cookieParser());

setGlobalConfig({
logger: console.info,
params: true,
});

app.get('/test/get', (req, res, next) => {
Expand All @@ -29,7 +30,7 @@ app.get('/test/get', (req, res, next) => {
instance.interceptors.request.use(AxiosLogger.requestLogger);
instance.interceptors.response.use(AxiosLogger.responseLogger);

instance.get('http://localhost:3000/echo/get?echo=hello').then((data) => {
instance.get('http://localhost:3000/echo/get', { params: { slug: 'test' } }).then((data) => {
res.json(200);
});
});
Expand All @@ -39,7 +40,7 @@ app.get('/test/post', (req, res, next) => {
instance.interceptors.request.use(AxiosLogger.requestLogger);
instance.interceptors.response.use(AxiosLogger.responseLogger);

instance.post('http://localhost:3000/echo/post', { echo: 'hello' }).then((data) => {
instance.post('http://localhost:3000/echo/post', { params: { slug: 'test' } }).then((data) => {
res.json(200);
});
});
Expand Down

0 comments on commit 66bdfff

Please sign in to comment.