forked from rust-lang/crates.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
36 lines (32 loc) · 1.11 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { createServer } from 'miragejs';
import * as Categories from './route-handlers/categories';
import * as Crates from './route-handlers/crates';
import * as DocsRS from './route-handlers/docs-rs';
import * as Invites from './route-handlers/invites';
import * as Keywords from './route-handlers/keywords';
import * as Me from './route-handlers/me';
import * as Metadata from './route-handlers/metadata';
import * as Session from './route-handlers/session';
import * as Summary from './route-handlers/summary';
import * as Teams from './route-handlers/teams';
import * as Users from './route-handlers/users';
export default function makeServer(config) {
return createServer({
...config,
routes() {
Categories.register(this);
Crates.register(this);
DocsRS.register(this);
Invites.register(this);
Keywords.register(this);
Metadata.register(this);
Me.register(this);
Session.register(this);
Summary.register(this);
Teams.register(this);
Users.register(this);
// Used by ember-cli-code-coverage
this.passthrough('/write-coverage');
},
});
}