Skip to content

Commit

Permalink
Add disable routes for CLI and serverless in the changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
255kb committed Nov 29, 2023
1 parent 6d9286f commit de19d34
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions content/releases/6.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ Before this update, routes toggling and folders collapsing were saved at the env

A data migration will run when you open the application for the first time after the update. This migration will copy your current routes toggling and folders collapsing settings to the application level.

One consequence is that disabled routes in the UI won't be honored by the CLI automatically. If you want to disable some routes when running the CLI, you can use the `--disable-routes` flag: `mockoon-cli start --data ~/data.json --disable-routes route1 route2` (disable all routes containing "route1" or "route2"). This flag supports multiple keywords or UUIDs.

When using the serverless package, you can achieve the same result by passing an array of UUIDs or keywords to the `disabledRoutes` option:

```javascript
const mockoonServerless = new mockoon.MockoonServerless(mockEnv, {
// disable all routes containing 'users' in their path, and the route with UUID '0999df54-7d57-407e-9325-c18d97fea729'
disabledRoutes: ['users', '0999df54-7d57-407e-9325-c18d97fea729']
});
```

(Issue [#1189](https://github.com/mockoon/mockoon/issues/1189))

## New callbacks feature
Expand Down

0 comments on commit de19d34

Please sign in to comment.