Giter Club home page Giter Club logo

Comments (4)

crbanman avatar crbanman commented on May 18, 2024

Created a pull request with a potential solution. #30

from node-mock-server.

smollweide avatar smollweide commented on May 18, 2024

Hi @crbanman,
I created an middleware object which gives you the power to change the response.

The difference to your approach is that there is a new option in the ui to select "middleware" as response.
Will this approach be okay for you?

from node-mock-server.

crbanman avatar crbanman commented on May 18, 2024

Hey @smollweide,
Your current solution does solve my problem.

It would be nice if each service could define their own middleware code inside the same directory as the other files for that service. But that's more of a "nice to have" feature as your current solution will work for me.

from node-mock-server.

smollweide avatar smollweide commented on May 18, 2024

Hi @crbanman,
it's released with in version 0.13.0

npm i [email protected] --save-dev

Thank you for your patience.

from node-mock-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.