Skip to content

Commit

Permalink
add route for test
Browse files Browse the repository at this point in the history
  • Loading branch information
kikyomits committed Nov 16, 2019
1 parent 0e20680 commit c0306ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/common/app.common.ts
Expand Up @@ -102,4 +102,12 @@ export function routes(app) {
metadata: req.body.metadata,
});
});
app.post('/v1/pets_charset', function (req, res, next) {
// req.file is the `avatar` file
// req.body will hold the text fields, if there were any
res.json({
...req.body,
id: 'new-id',
});
});
}

0 comments on commit c0306ba

Please sign in to comment.