1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

refactor(docker/images): remove EndpointProvider from build [EE-5551] (#9020)

This commit is contained in:
Chaim Lev-Ari 2023-06-25 08:02:54 +07:00 committed by GitHub
parent 7cb6e3f66a
commit dfc1a7b1d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 22 deletions

View file

@ -1,16 +1,13 @@
import { API_ENDPOINT_ENDPOINTS } from '@/constants';
import { jsonObjectsToArrayHandler } from './response/handlers';
angular.module('portainer.docker').factory('Build', [
'$resource',
'API_ENDPOINT_ENDPOINTS',
'EndpointProvider',
function BuildFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
function BuildFactory($resource) {
'use strict';
return $resource(
API_ENDPOINT_ENDPOINTS + '/:endpointId/docker/build',
{
endpointId: EndpointProvider.endpointID,
},
{},
{
buildImage: {
method: 'POST',