File tree Expand file tree Collapse file tree
internal/core/attestation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ type attestationController struct {
1010 attestationRepository core.AttestationRepository
1111}
1212
13+ func NewAttestationController (repository core.AttestationRepository ) * attestationController {
14+ return & attestationController {
15+ attestationRepository : repository ,
16+ }
17+ }
18+
1319func (a * attestationController ) List (ctx core.Context ) error {
1420
1521 asset := core .GetAsset (ctx )
@@ -22,12 +28,6 @@ func (a *attestationController) List(ctx core.Context) error {
2228 return ctx .JSON (200 , attestationList )
2329}
2430
25- func NewAttestationController (repository core.AttestationRepository ) * attestationController {
26- return & attestationController {
27- attestationRepository : repository ,
28- }
29- }
30-
3131func (a * attestationController ) Create (ctx core.Context ) error {
3232 var attestation models.Attestation
3333 err := ctx .Bind (& attestation )
You can’t perform that action at this time.
0 commit comments