refactor: 💡 port mirage mocks into api addon

This commit is contained in:
Randall Morey committed 2020-11-19 11:47:51 -05:00
1 parent 54b839a16b
commit 68868e44bc
51 files changed
+13

No files matched your search

+9
View File
@@ -23,6 +23,15 @@ This addon contains the API data access layer for Boundary.
Add this addon to an Ember application's `devDependencies` as:
`"api": "*"`, for applications included in this monorepo.
Since this addon also includes Mirage mocks, be sure to install
`ember-cli-mirage` and add the following config to your UI project:
```js
'ember-cli-mirage': {
directory: '../../addons/api/mirage'
}
```
## Installation
See monorepo README for installation instructions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+4
View File
@@ -80,6 +80,10 @@ module.exports = function (environment) {
'media-src': ["'self'"],
'manifest-src': ["'self'"],
},
'ember-cli-mirage': {
directory: '../../addons/api/mirage'
}
};
// Unsafe policy is necessary in development and test environments, but should