Skip to content

Commit a14e880

Browse files
authored
Merge pull request #14 from MDA2AV/Add-POST-endpoint-to-Quarkus
Add catchAllPost method to handle POST requests
2 parents a4baa57 + 850cc0b commit a14e880

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/Servers/QuarkusServer/src/main/java/server/Application.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package server;
22

33
import jakarta.ws.rs.GET;
4+
import jakarta.ws.rs.POST;
45
import jakarta.ws.rs.Path;
56
import jakarta.ws.rs.Produces;
67
import jakarta.ws.rs.core.MediaType;
@@ -14,4 +15,11 @@ public class Application {
1415
public String catchAll() {
1516
return "OK";
1617
}
18+
19+
@POST
20+
@Path("{path:.*}")
21+
@Produces(MediaType.TEXT_PLAIN)
22+
public String catchAllPost() {
23+
return "OK";
24+
}
1725
}

0 commit comments

Comments
 (0)