The route path
@put("/api/users/:id")
async updateUser(req: KosRequest<"/api/users/:id">, res: KosResponse) {
const userId = req.params.id;
const updates = req.body;
const updatedUser = await this.userService.updateUser(userId, updates);
res.status(200).send(updatedUser);
}
Decorator for PUT endpoints