Add pow metrics

This commit is contained in:
2024-04-04 17:43:27 -06:00
parent 2eed36bdd7
commit 6084054590
6 changed files with 146 additions and 7 deletions

View File

@@ -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,