Skip to content

Commit

Permalink
add AdapterContractController
Browse files Browse the repository at this point in the history
  • Loading branch information
hknots committed Oct 24, 2024
1 parent 7ca2e1e commit 3743201
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package no.fintlabs.provider.register;

import lombok.RequiredArgsConstructor;
import no.fintlabs.provider.security.AdapterContractContext;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Set;

@RestController
@RequiredArgsConstructor
public class AdapterContractController {

private final AdapterContractContext adapterContractContext;

@GetMapping("/adapter")
public ResponseEntity<Set<String>> getAdapterIds() {
return ResponseEntity.ok(adapterContractContext.getAdapterIds());
}

}

0 comments on commit 3743201

Please sign in to comment.