-
Notifications
You must be signed in to change notification settings - Fork 11
/
routes.js
78 lines (76 loc) · 1.82 KB
/
routes.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
'use strict';
const routeHandler = require('./routeHandler');
module.exports.routes = [
{ // about
method: 'GET',
path: '/',
handler: routeHandler.about
},
{ // static file content (WDC)
method: 'GET',
path: '/{param*}',
config: {
auth: false
},
handler: routeHandler.public
},
{
method: 'GET',
path: '/v1/docs',
handler: routeHandler.docs
},
{
method: 'GET',
path: '/v1/doc/{docId}',
handler: routeHandler.doc
},
{
method: 'GET',
path: '/v1/doc/{docId}/objects',
handler: routeHandler.objects
},
{
method: 'GET',
path: '/v1/doc/{docId}/serialize',
handler: routeHandler.serialize
},
{
method: 'GET',
path: '/v1/doc/{docId}/object/{objId}',
handler: routeHandler.objectId
},
{
method: 'GET',
path: '/v1/doc/{docId}/object/{objId}/layout',
handler: routeHandler.objectLayout
},
{
method: 'GET',
path: '/v1/doc/{docId}/object/{objId}/data',
handler: routeHandler.objectData
},
{
method: 'GET',
path: '/v1/doc/{docId}/object/{objId}/pivotdata',
handler: routeHandler.objectPivotdata
},
{
method: 'GET',
path: '/v1/doc/{docId}/object/{objId}/layers',
handler: routeHandler.objectLayers
},
{
method: 'POST',
path: '/v1/doc/{docId}/hypercube',
handler: routeHandler.hyperCube
},
{
method: 'POST',
path: '/v1/doc/{docId}/hypercube/size',
handler: routeHandler.hyperCubeSize
},
{
method: 'POST',
path: '/v1/doc/{docId}/hypercube/json/{pageNo*}',
handler: routeHandler.hyperCubeJson
}];