-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresora.config.js
More file actions
42 lines (41 loc) · 966 Bytes
/
Copy pathresora.config.js
File metadata and controls
42 lines (41 loc) · 966 Bytes
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
37
38
39
40
41
42
import { defineConfig } from 'resora'
export default defineConfig({
preferredCase: 'camel',
responseStructure: {
wrap: true,
rootKey: 'data',
},
paginatedExtras: ['meta', 'links'],
baseUrl: 'https://localhost',
pageName: 'page',
paginatedLinks: {
first: 'first',
last: 'last',
prev: 'prev',
next: 'next',
},
paginatedMeta: {
to: 'to',
from: 'from',
links: 'links',
path: 'path',
total: 'total',
per_page: 'per_page',
last_page: 'last_page',
current_page: 'current_page',
},
cursorMeta: {
previous: 'previous',
next: 'next',
},
resourcesDir: 'src/app/http/resources',
localStubsDir: 'node_modules/@arkstack/driver-express/stubs',
stubs: {
resource: 'resource.stub',
collection: 'resource.collection.stub',
controller: 'controller.stub',
api: 'controller.api.stub',
model: 'controller.model.stub',
apiResource: 'controller.api.resource.stub',
}
})