@@ -15,21 +15,23 @@ import (
1515)
1616
1717type ModelGalleryEndpointService struct {
18- galleries []config.Gallery
19- modelPath string
20- galleryApplier * services.GalleryService
18+ galleries []config.Gallery
19+ backendGalleries []config.Gallery
20+ modelPath string
21+ galleryApplier * services.GalleryService
2122}
2223
2324type GalleryModel struct {
2425 ID string `json:"id"`
2526 gallery.GalleryModel
2627}
2728
28- func CreateModelGalleryEndpointService (galleries []config.Gallery , modelPath string , galleryApplier * services.GalleryService ) ModelGalleryEndpointService {
29+ func CreateModelGalleryEndpointService (galleries []config.Gallery , backendGalleries []config. Gallery , modelPath string , galleryApplier * services.GalleryService ) ModelGalleryEndpointService {
2930 return ModelGalleryEndpointService {
30- galleries : galleries ,
31- modelPath : modelPath ,
32- galleryApplier : galleryApplier ,
31+ galleries : galleries ,
32+ backendGalleries : backendGalleries ,
33+ modelPath : modelPath ,
34+ galleryApplier : galleryApplier ,
3335 }
3436}
3537
@@ -79,6 +81,7 @@ func (mgs *ModelGalleryEndpointService) ApplyModelGalleryEndpoint() func(c *fibe
7981 ID : uuid .String (),
8082 GalleryElementName : input .ID ,
8183 Galleries : mgs .galleries ,
84+ BackendGalleries : mgs .backendGalleries ,
8285 }
8386
8487 return c .JSON (schema.GalleryResponse {ID : uuid .String (), StatusURL : fmt .Sprintf ("%smodels/jobs/%s" , utils .BaseURL (c ), uuid .String ())})
0 commit comments