File tree Expand file tree Collapse file tree 13 files changed +29
-11
lines changed
src/routes/globalSettings Expand file tree Collapse file tree 13 files changed +29
-11
lines changed Original file line number Diff line number Diff line change 6155
6155
" Global Settings"
6156
6156
],
6157
6157
"description" : " Tests GitHub App configuration by fetching Microsoft VS Code repository information. Only global administrators can access this endpoint." ,
6158
+ "requestBody" : {
6159
+ "content" : {
6160
+ "application/json" : {
6161
+ "schema" : {
6162
+ "type" : " object" ,
6163
+ "properties" : {},
6164
+ "additionalProperties" : true
6165
+ }
6166
+ }
6167
+ }
6168
+ },
6158
6169
"security" : [
6159
6170
{
6160
6171
"cookieAuth" : []
Original file line number Diff line number Diff line change @@ -4287,6 +4287,13 @@ paths:
4287
4287
description : Tests GitHub App configuration by fetching Microsoft VS Code
4288
4288
repository information. Only global administrators can access this
4289
4289
endpoint.
4290
+ requestBody :
4291
+ content :
4292
+ application/json :
4293
+ schema :
4294
+ type : object
4295
+ properties : {}
4296
+ additionalProperties : true
4290
4297
security :
4291
4298
- cookieAuth : []
4292
4299
responses :
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export default async function listCategoriesRoute(fastify: FastifyInstance) {
43
43
} )
44
44
}
45
45
} ,
46
- preHandler : requireGlobalAdmin ( ) ,
46
+ preValidation : requireGlobalAdmin ( ) ,
47
47
} , async ( request , reply ) => {
48
48
try {
49
49
const categories = await GlobalSettingsService . getCategories ( ) ;
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export default async function githubTestConnectionRoute(fastify: FastifyInstance
69
69
} )
70
70
}
71
71
} ,
72
- preHandler : requireGlobalAdmin ( ) ,
72
+ preValidation : requireGlobalAdmin ( ) ,
73
73
} , async ( request , reply ) => {
74
74
fastify . log . info ( {
75
75
operation : 'github_app_test_connection' ,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export default async function getGroupSettingsRoute(fastify: FastifyInstance) {
52
52
} )
53
53
}
54
54
} ,
55
- preHandler : requireGlobalAdmin ( ) ,
55
+ preValidation : requireGlobalAdmin ( ) ,
56
56
} , async ( request , reply ) => {
57
57
try {
58
58
const { groupId } = request . params ;
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export default async function listGroupsRoute(fastify: FastifyInstance) {
44
44
} )
45
45
}
46
46
} ,
47
- preHandler : requireGlobalAdmin ( ) ,
47
+ preValidation : requireGlobalAdmin ( ) ,
48
48
} , async ( request : FastifyRequest , reply : FastifyReply ) => {
49
49
try {
50
50
const groupsWithSettings = await GlobalSettingsService . getAllGroupsWithSettings ( ) ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export default async function healthCheckRoute(fastify: FastifyInstance) {
47
47
} )
48
48
}
49
49
} ,
50
- preHandler : requireGlobalAdmin ( ) ,
50
+ preValidation : requireGlobalAdmin ( ) ,
51
51
} , async ( request , reply ) => {
52
52
try {
53
53
const encryptionWorking = validateEncryption ( ) ;
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export default async function bulkGlobalSettingsRoute(fastify: FastifyInstance)
68
68
} )
69
69
}
70
70
} ,
71
- preHandler : requireGlobalAdmin ( ) ,
71
+ preValidation : requireGlobalAdmin ( ) ,
72
72
} , async ( request , reply ) => {
73
73
try {
74
74
// Fastify has already validated request.body using BulkGlobalSettingsSchema
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export default async function deleteGlobalSettingRoute(fastify: FastifyInstance)
55
55
} )
56
56
}
57
57
} ,
58
- preHandler : requireGlobalAdmin ( ) ,
58
+ preValidation : requireGlobalAdmin ( ) ,
59
59
} , async ( request , reply ) => {
60
60
try {
61
61
const { key } = request . params ;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export default async function getGlobalSettingRoute(fastify: FastifyInstance) {
57
57
} )
58
58
}
59
59
} ,
60
- preHandler : requireGlobalAdmin ( ) ,
60
+ preValidation : requireGlobalAdmin ( ) ,
61
61
} , async ( request , reply ) => {
62
62
try {
63
63
const { key } = request . params ;
You can’t perform that action at this time.
0 commit comments