mcp
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import {
|
||||
Body,
|
||||
Controller,
|
||||
Delete,
|
||||
Get,
|
||||
HttpCode,
|
||||
HttpStatus,
|
||||
@@ -56,24 +55,6 @@ export class AuthController {
|
||||
return this.authService.getPublicUser(request.user!.sub);
|
||||
}
|
||||
|
||||
@Get('me/mcp-api-key')
|
||||
@UseGuards(JwtAuthGuard)
|
||||
getMcpApiKeyStatus(@Req() request: AuthenticatedRequest) {
|
||||
return this.authService.getMcpApiKeyStatus(request.user!.sub);
|
||||
}
|
||||
|
||||
@Post('me/mcp-api-key')
|
||||
@UseGuards(JwtAuthGuard)
|
||||
createMcpApiKey(@Req() request: AuthenticatedRequest) {
|
||||
return this.authService.createMcpApiKey(request.user!.sub);
|
||||
}
|
||||
|
||||
@Delete('me/mcp-api-key')
|
||||
@UseGuards(JwtAuthGuard)
|
||||
revokeMcpApiKey(@Req() request: AuthenticatedRequest) {
|
||||
return this.authService.revokeMcpApiKey(request.user!.sub);
|
||||
}
|
||||
|
||||
@Get('users/search')
|
||||
@UseGuards(JwtAuthGuard)
|
||||
searchUsers(
|
||||
|
||||
Reference in New Issue
Block a user