File tree 1 file changed +0
-32
lines changed
packages/connery/src/api/controllers
1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change 1
1
import { Public } from '../auth.guard.js' ;
2
2
import { Controller , Get } from '@nestjs/common' ;
3
3
import {
4
- ApiSecurity ,
5
4
ApiTags ,
6
5
ApiOperation ,
7
6
ApiExtraModels ,
8
7
ApiInternalServerErrorResponse ,
9
8
getSchemaPath ,
10
- ApiUnauthorizedResponse ,
11
9
ApiOkResponse ,
12
10
} from '@nestjs/swagger' ;
13
11
import { GenericErrorResponse , GenericObjectResponse } from '../dto.js' ;
@@ -40,34 +38,4 @@ export class ToolsController {
40
38
data : undefined ,
41
39
} ;
42
40
}
43
-
44
- @ApiOperation ( {
45
- summary : 'Verify if the request is authenticated.' ,
46
- description : 'Verify if the request is authenticated.' ,
47
- } )
48
- @ApiOkResponse ( {
49
- description : 'The request is authenticated.' ,
50
- schema : {
51
- $ref : getSchemaPath ( GenericObjectResponse ) ,
52
- } ,
53
- } )
54
- @ApiExtraModels ( GenericErrorResponse )
55
- @ApiUnauthorizedResponse ( {
56
- description : 'Unauthorized.' ,
57
- schema : {
58
- $ref : getSchemaPath ( GenericErrorResponse ) ,
59
- } ,
60
- } )
61
- @ApiSecurity ( 'ApiKey' )
62
- @Get ( '/verify-access' )
63
- verifyAccess ( ) : GenericObjectResponse < undefined > {
64
- // By default every API endpoint is protected by the AuthGuard. Including this one.
65
- // And the AuthGuard will throw an exception if the request is not authenticated.
66
- // This endpoint does not contain any business logic, it is only used to verify if the request is authenticated by the clients.
67
-
68
- return {
69
- status : 'success' ,
70
- data : undefined ,
71
- } ;
72
- }
73
41
}
You can’t perform that action at this time.
0 commit comments