This commit is contained in:
Boris D
2025-09-22 18:35:02 +03:00
parent 51f8b0d773
commit fbbbd61838
23 changed files with 282 additions and 67 deletions

View File

@ -1,14 +1,14 @@
import { Body, Controller, Inject, Put } from "@nestjs/common";
import { ProjectService } from "./project.service";
@Controller("")
@Controller("project")
export class ProjectController {
constructor(
@Inject(ProjectService)
private readonly projectService: ProjectService
) {}
@Put("project/create")
@Put("create")
createProject(@Body() body: { name: string }) {
return this.projectService.create(body.name);
}