Skip to content

Commit 4b5f1e3

Browse files
committed
fix backend build
1 parent 4cbd719 commit 4b5f1e3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

backend/src/app.controller.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
import { Controller, Get } from '@nestjs/common';
22
import { AppService } from './app.service';
3+
import { UserDto } from '@shared/dto/user.dto';
34

45
@Controller()
56
export class AppController {
67
constructor(private readonly appService: AppService) {}
78

89
@Get()
910
getHello(): string {
10-
const user: UserDto;
11+
const user: UserDto = {
12+
id: 1,
13+
name: 'John Doe',
14+
email: 'sds',
15+
};
16+
console.log(user);
1117
return this.appService.getHello();
1218
}
1319
}

0 commit comments

Comments
 (0)