-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.js
More file actions
39 lines (29 loc) · 1.28 KB
/
index.js
File metadata and controls
39 lines (29 loc) · 1.28 KB
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
/*!
GPII pilotsConfig
Copyright 2014 Technische Universität Dresden (TUD)
Copyright 2014 Raising the Floor - International (RtF)
Licensed under the New BSD license. You may not use this file except in
compliance with this License.
You may obtain a copy of the License at
https://github.com/GPII/universal/blob/master/LICENSE.txt
Acknowledgements:
The research leading to these results has received funding from
the European Union's Seventh Framework Programme (FP7/2007-2013)
under grant agreement no. 289016.
*/
var server = require("./server");
var router = require("./router");
var requestHandlers = require("./requestHandler");
var handle = {}
handle["/"] = requestHandlers.start;
handle["/start"] = requestHandlers.start;
handle["/setDeviceinfo"] = requestHandlers.setDeviceinfo;
handle["/setDetailedDeviceinfo"] = requestHandlers.setDetailedDeviceinfo;
handle["/selectMM"] = requestHandlers.selectMM;
handle["/snapshotToPrefs"] = requestHandlers.snapshotToPrefs;
handle["/getFeedback"] = requestHandlers.getFeedback;
handle["/logging"] = requestHandlers.logging;
// outdated logging
// handle["/snapshotToLog"] = requestHandlers.snapshotToLog;
// injecting the route function of router module into server module:
server.start(router.route, handle);