-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! preserve backwards compat for
lb4 rest-crud
Signed-off-by: Miroslav Bajtoš <[email protected]>
- Loading branch information
Showing
3 changed files
with
75 additions
and
31 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
packages/cli/snapshots/integration/generators/rest-crud.integration.snapshots.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// IMPORTANT | ||
// This snapshot file is auto-generated, but designed for humans. | ||
// It should be checked into source control and tracked carefully. | ||
// Re-generate by setting UPDATE_SNAPSHOTS=1 and running tests. | ||
// Make sure to inspect the changes in the snapshots below. | ||
// Do not ignore changes! | ||
|
||
'use strict'; | ||
|
||
exports[`lb4 rest-crud legacy JSON-based configuration loads config from \`{name}.datasource.config.json\` 1`] = ` | ||
import {ModelCrudRestApiConfig} from '@loopback/rest-crud'; | ||
import {DefaultModel} from '../models'; | ||
const config: ModelCrudRestApiConfig = { | ||
model: DefaultModel, | ||
pattern: 'CrudRest', | ||
dataSource: 'dbmem', | ||
basePath: '/default-models', | ||
}; | ||
module.exports = config; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters