Skip to content

Commit 3daaeed

Browse files
authored
Merge pull request #97 from saenyakorn/yu/fix/world
[Fix] modify world endpoint
2 parents b0873d2 + ff2e67a commit 3daaeed

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.changeset/sixty-teachers-mix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"api": patch
3+
---
4+
5+
Fix modify world endpoint

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)