server.on -> loop

So you think they meant one of these?

server.on("/blink", []() {
  // the loop function runs over and over again forever
  digitalWrite(ledPin, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(ledPin, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
});
server.on("/blink", []() {
  // the loop function runs over and over again forever
  while (true) {
    digitalWrite(ledPin, HIGH);   // turn the LED on (HIGH is the voltage level)
    delay(1000);                       // wait for a second
    digitalWrite(ledPin, LOW);    // turn the LED off by making the voltage LOW
    delay(1000);     // wait for a second
  }
});