remove test route

Co-authored-by: kritzl <kritzl@kritzl.dev>
This commit is contained in:
June 2025-10-31 19:41:18 +01:00
commit 9a4dbfeb16
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0

View file

@ -35,19 +35,9 @@ public class SSHKeyResourceProvider implements RealmResourceProvider {
} }
@GET @GET
@Path("hello") @Path("export")
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
@Operation(summary = "Public hello endpoint", description = "This endpoint returns hello and the name of the requested realm.") public Response exportKeys() {
@APIResponse(responseCode = "200", description = "", content = {
@Content(schema = @Schema(implementation = Response.class, type = SchemaType.OBJECT)) })
public Response helloAnonymous() {
return Response.ok(Map.of("hello", session.getContext().getRealm().getName())).build();
}
@GET
@Path("hello-auth")
@Produces(MediaType.APPLICATION_JSON)
public Response helloAuthenticated() {
UserProvider userProvider = session.users(); UserProvider userProvider = session.users();
try { try {