Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define custom routes #9

Closed
olavoasantos opened this issue Aug 26, 2018 · 0 comments
Closed

Define custom routes #9

olavoasantos opened this issue Aug 26, 2018 · 0 comments
Assignees
Labels

Comments

@olavoasantos
Copy link
Owner

olavoasantos commented Aug 26, 2018

Description

Allow users to define custom routes and responses.

Solution

Faux-call object now exposes the Express.js server through the faux.route.

Proposed API

const faux = require('faux-call');

faux.route.get('/custom/route/path', (req, res) => {
  return res.send('SEND CUSTOM RESPONSE');
});

Release

@olavoasantos olavoasantos added the feature New feature label Aug 26, 2018
@olavoasantos olavoasantos changed the title Custom routes response Define custom routes Aug 30, 2018
This was referenced Aug 30, 2018
@olavoasantos olavoasantos reopened this Aug 30, 2018
@olavoasantos olavoasantos self-assigned this Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant