-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontroller.js
More file actions
55 lines (45 loc) · 1 KB
/
controller.js
File metadata and controls
55 lines (45 loc) · 1 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
module.exports = class {
static requestConfig() {
return {
helloWorld: "all",
getQuery: "get",
getQueryType: "get",
postRaw: "post",
postUpload: "post",
getCookieData: "get",
postUrlencoded: "post",
postMultipart: "post",
restParams: {
method: "get",
params: "/:arg1/:arg2"
}
}
}
helloWorld() {
return "hello world";
}
getQuery(arg1, arg2) {
return arg1 +" "+ arg2;
}
getQueryType(args) {
return JSON.stringify(args, null, 4);
}
getCookieData($cookie) {
return $cookie;
}
postRaw($raw) {
return $raw;
}
postUpload($raw) {
return $raw;
}
postUrlencoded(arg1, arg2) {
return arg1 +" "+ arg2;
}
postMultipart(arg1, arg2) {
return arg1 +" "+ arg2;
}
restParams(arg1, arg2) {
return arg1 +" "+ arg2;
}
}