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

[FEATURE] Define custom routes #14

Merged
merged 1 commit into from
Aug 30, 2018

Conversation

olavoasantos
Copy link
Owner

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

  • Version 0.2.0

Issue

Resolves #9

@olavoasantos olavoasantos added feature New feature done labels Aug 30, 2018
@olavoasantos olavoasantos self-assigned this Aug 30, 2018
@olavoasantos olavoasantos changed the base branch from master to rt/version-0.2.0 August 30, 2018 19:57
@olavoasantos olavoasantos merged commit 7d18a50 into rt/version-0.2.0 Aug 30, 2018
@olavoasantos olavoasantos changed the title Feature/define custom routes [FEATURE] Define custom routes Aug 31, 2018
olavoasantos added a commit that referenced this pull request Aug 31, 2018
* refactored response files into separate files

* adds the hability to define custom routes through the faux object (#14)

* added api.prefix to the config and added prefix to routes (#16)

* added relationship routes

* added relationship routes (#17)

* removed unecessary Faux.js file

* removed test file

* removed test file

* fixed unparsed id on hasMany delete route
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant