package com.example.myapp;
import com.unkey.unkeysdk.dto.KeyDeleteRequest;
@RestController
public class APIController {
private static IKeyService keyService = new KeyService();
@DeleteMapping("/delete")
public ResponseEntity<String> updateKey(
@RequestBody KeyDeleteRequest keyId,
@RequestHeader("Authorization") String authToken) {
// Delegate the creation of the key to the KeyService
return keyService.deleteKey(authToken, keyId);
}
}