Skip to content

Commit 1661db5

Browse files
committed
fix: modify world endpoint
1 parent b0873d2 commit 1661db5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

apps/api/src/app.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ export class AppController {
2424
}
2525
}
2626

27-
@Get('nice')
27+
@Get('world')
2828
getNice() {
2929
return {
30-
message: 'Nice Nice',
30+
message: this.appService.getWorld(),
3131
}
3232
}
3333
}

apps/api/src/app.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ export class AppService {
77
getHello(): string {
88
return `Hello World World version ${pk.version} `
99
}
10+
11+
getWorld(): string {
12+
return `World version ${pk.version} `
13+
}
1014
}

0 commit comments

Comments
 (0)