Skip to content

Commit 15dd511

Browse files
committed
docs: fix typo
1 parent e77a218 commit 15dd511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ import {
5959
class UserHttpService {
6060
@GetExchange('/users/{id}') // path
6161
@ResponseBody(UserResponse) // response dto
62-
async request(@PathVariable() id: number): Promise<UserResponse> {
62+
async request(@PathVariable('id') id: number): Promise<UserResponse> {
6363
return imitation(id); // this is a mock function to prevent the type error
6464
}
6565
}

0 commit comments

Comments
 (0)