File tree Expand file tree Collapse file tree 2 files changed +22
-17
lines changed Expand file tree Collapse file tree 2 files changed +22
-17
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,6 @@ module.exports = function (environment) {
27
27
hostWhitelist : [ 'crates.io' , / ^ l o c a l h o s t : \d + $ / , / \. h e r o k u a p p \. c o m $ / ] ,
28
28
} ,
29
29
30
- 'ember-cli-mirage' : {
31
- discoverEmberDataModels : false ,
32
- } ,
33
30
'ember-cli-notifications' : {
34
31
autoClear : true ,
35
32
clearDuration : 10_000 ,
Original file line number Diff line number Diff line change
1
+ import { createServer } from 'miragejs' ;
2
+
1
3
import * as Categories from './route-handlers/categories' ;
2
4
import * as Crates from './route-handlers/crates' ;
3
5
import * as DocsRS from './route-handlers/docs-rs' ;
@@ -10,19 +12,25 @@ import * as Summary from './route-handlers/summary';
10
12
import * as Teams from './route-handlers/teams' ;
11
13
import * as Users from './route-handlers/users' ;
12
14
13
- export default function ( ) {
14
- Categories . register ( this ) ;
15
- Crates . register ( this ) ;
16
- DocsRS . register ( this ) ;
17
- Invites . register ( this ) ;
18
- Keywords . register ( this ) ;
19
- Metadata . register ( this ) ;
20
- Me . register ( this ) ;
21
- Session . register ( this ) ;
22
- Summary . register ( this ) ;
23
- Teams . register ( this ) ;
24
- Users . register ( this ) ;
15
+ export default function makeServer ( config ) {
16
+ return createServer ( {
17
+ ...config ,
18
+
19
+ routes ( ) {
20
+ Categories . register ( this ) ;
21
+ Crates . register ( this ) ;
22
+ DocsRS . register ( this ) ;
23
+ Invites . register ( this ) ;
24
+ Keywords . register ( this ) ;
25
+ Metadata . register ( this ) ;
26
+ Me . register ( this ) ;
27
+ Session . register ( this ) ;
28
+ Summary . register ( this ) ;
29
+ Teams . register ( this ) ;
30
+ Users . register ( this ) ;
25
31
26
- // Used by ember-cli-code-coverage
27
- this . passthrough ( '/write-coverage' ) ;
32
+ // Used by ember-cli-code-coverage
33
+ this . passthrough ( '/write-coverage' ) ;
34
+ } ,
35
+ } ) ;
28
36
}
You can’t perform that action at this time.
0 commit comments