Skip to content

Commit

Permalink
added tag in controller
Browse files Browse the repository at this point in the history
  • Loading branch information
joefol committed Apr 26, 2024
1 parent 863a0d6 commit 9844ba1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import io.micronaut.http.annotation.Get;
import jakarta.inject.Named;

//tag::ex[]
@Controller("/servoMotor")
public class ServoMotorController {

Expand All @@ -30,3 +31,4 @@ public void setAngle(int angle) {
servoMotorHelper.setAngle(angle);
}
}
//end::ex[]

0 comments on commit 9844ba1

Please sign in to comment.