@@ -24,65 +24,26 @@ app.proxy = isBehindProxy
24
24
const router = new Router ( )
25
25
26
26
router
27
- // .post(
28
- // '/inbox',
29
- // solidAuth,
30
- // /*
31
- // #swagger.requestBody = {
32
- // required: true,
33
- // content: {
34
- // 'application/json': {
35
- // schema: {
36
- // type: 'object',
37
- // properties: {
38
- // '@context': { const: 'https://www.w3.org/ns/activitystreams' },
39
- // '@id': { type: 'string' },
40
- // '@type': { const: 'Add' },
41
- // actor: { type: 'string', format: 'uri' },
42
- // object: { type: 'string', format: 'uri' },
43
- // target: { type: 'string', format: 'email' },
44
- // },
45
- // required: ['@context', '@type', 'actor', 'object', 'target'],
46
- // additionalProperties: false,
47
- // },
48
- // },
49
- // },
50
- // }
51
- // */
52
- // validateBody({
53
- // type: 'object',
54
- // properties: {
55
- // '@context': { const: 'https://www.w3.org/ns/activitystreams' },
56
- // '@id': { type: 'string' },
57
- // '@type': { const: 'Add' },
58
- // actor: { type: 'string', format: 'uri' },
59
- // object: { type: 'string', format: 'uri' },
60
- // target: { type: 'string', format: 'email' },
61
- // },
62
- // required: ['@context', '@type', 'actor', 'object', 'target'],
63
- // additionalProperties: false,
64
- // }),
65
- // initializeIntegration,
66
- // )
67
27
. post (
68
28
'/init' ,
69
29
solidAuth ,
70
30
authorizeGroups ( allowedGroups ) ,
71
- // #swagger.requestBody = {
72
- // required: true,
73
- // content: {
74
- // 'application/json': {
75
- // schema: {
76
- // type: 'object',
77
- // properties: {
78
- // email: { type: 'string', format: 'email' },
79
- // },
80
- // required: ['email'],
81
- // additionalProperties: false,
82
- // },
83
- // },
84
- // },
85
- // }
31
+ /* #swagger.requestBody = {
32
+ required: true,
33
+ content: {
34
+ 'application/json': {
35
+ schema: {
36
+ type: 'object',
37
+ properties: {
38
+ email: { type: 'string', format: 'email' },
39
+ },
40
+ required: ['email'],
41
+ additionalProperties: false,
42
+ },
43
+ },
44
+ },
45
+ }
46
+ */
86
47
validateBody ( {
87
48
type : 'object' ,
88
49
properties : { email : { type : 'string' , format : 'email' } } ,
0 commit comments