feat: add logging functionality with LoggerService; implement log entity and controller; enhance query processing with logging support

This commit is contained in:
lborv
2025-10-11 16:21:03 +03:00
parent 323fc6e817
commit 57e4a8b932
19 changed files with 328 additions and 24 deletions

View File

@ -5,7 +5,6 @@ import { AdminGuard } from "src/api/guards/admin.guard";
@Controller("project")
@UseGuards(ApiTokenGuard)
@UseGuards(AdminGuard)
export class ProjectController {
constructor(
@Inject(ProjectService)
@ -16,4 +15,10 @@ export class ProjectController {
createProject(@Body() body: { name: string }) {
return this.projectService.create(body.name);
}
@Put("create-without-db")
@UseGuards(AdminGuard)
createProjectWithoutDB(@Body() body: { name: string }) {
return this.projectService.create(body.name, false);
}
}