feat: add logging functionality with LoggerService; implement log entity and controller; enhance query processing with logging support
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user