21 lines
489 B
TypeScript
21 lines
489 B
TypeScript
import {
|
|
ArtifactsService,
|
|
type ArtifactRecord,
|
|
} from "./artifacts.service.ts";
|
|
|
|
export class ArtifactsController {
|
|
private readonly service: ArtifactsService;
|
|
|
|
constructor(service: ArtifactsService) {
|
|
this.service = service;
|
|
}
|
|
|
|
createArtifact(input: ArtifactRecord) {
|
|
return this.service.createArtifact(input);
|
|
}
|
|
|
|
listArtifactsByProducer(producerType: string, producerId: string) {
|
|
return this.service.listArtifactsByProducer(producerType, producerId);
|
|
}
|
|
}
|