canActivate(context: ExecutionContext): boolean { const request = context.switchToHttp().getRequest(); const params = request.params; const id = params.id; // automatically parsed }