Add pow metrics
This commit is contained in:
@@ -12,7 +12,7 @@ import {
|
||||
} from '@nestjs/common';
|
||||
import { KvService } from './kv.service';
|
||||
import { Request } from 'express';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
import { ApiQuery, ApiTags } from '@nestjs/swagger';
|
||||
import { FileInterceptor } from '@nestjs/platform-express';
|
||||
|
||||
@Controller('kv')
|
||||
@@ -21,6 +21,8 @@ export class KvController {
|
||||
constructor(private readonly kvService: KvService) { }
|
||||
|
||||
@Get(':namespace/:key/metadata')
|
||||
@ApiQuery({ name: 'namespace', required: true })
|
||||
@ApiQuery({ name: 'key', required: true })
|
||||
async getMetadata(
|
||||
@Param('namespace') namespace: string,
|
||||
@Param('key') key: string,
|
||||
|
Reference in New Issue
Block a user