第一次提交

This commit is contained in:
dmy
2026-01-09 23:18:52 +08:00
commit d9105797f4
46 changed files with 15003 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import { Controller, Get, Post, Body, Delete, Param } from '@nestjs/common';
import { KeywordsService } from './keywords.service';
@Controller('api/keywords')
export class KeywordsController {
constructor(private readonly keywordsService: KeywordsService) {}
@Get()
findAll() {
return this.keywordsService.findAll();
}
@Post()
create(@Body('word') word: string, @Body('weight') weight: number) {
return this.keywordsService.create(word, weight);
}
@Delete(':id')
remove(@Param('id') id: string) {
return this.keywordsService.remove(id);
}
}