diff --git a/src/main/java/com/example/jerseyexercise/resources/Poker.java b/src/main/java/com/example/jerseyexercise/resources/Poker.java new file mode 100644 index 0000000..f7d340f --- /dev/null +++ b/src/main/java/com/example/jerseyexercise/resources/Poker.java @@ -0,0 +1,16 @@ +package com.example.jerseyexercise.resources; + +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import org.springframework.stereotype.Component; + +@Path("/poker") +@Component +public class Poker { + @GET + @Produces(MediaType.TEXT_PLAIN) + public String getPoker() {return "Bet";} + +}