Compare commits

..

2 Commits

Author SHA1 Message Date
Vincent Guillet
c09316189e Update PrestashopAdminController request mapping to remove redundant API prefix 2025-11-30 11:54:13 +01:00
Vincent Guillet
ad441b8dbc Update Prestashop service endpoints to remove redundant API prefix 2025-11-30 11:53:42 +01:00
2 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.List; import java.util.List;
@RestController @RestController
@RequestMapping("/api/api/ps-admin") @RequestMapping("/api/ps-admin")
@RequiredArgsConstructor @RequiredArgsConstructor
public class PrestashopAdminController { public class PrestashopAdminController {

View File

@@ -24,10 +24,10 @@ export class PrestashopService {
private readonly apiBase = environment.apiUrl; private readonly apiBase = environment.apiUrl;
/** Endpoints backend "intelligents" (logique métier Presta) */ /** Endpoints backend "intelligents" (logique métier Presta) */
private readonly adminBase = `${this.apiBase}/api/ps-admin`; private readonly adminBase = `${this.apiBase}/ps-admin`;
/** Endpoints proxy bruts vers Presta (si tu en as encore besoin) */ /** Endpoints proxy bruts vers Presta (si tu en as encore besoin) */
private readonly proxyBase = `${this.apiBase}/api/ps`; private readonly proxyBase = `${this.apiBase}/ps`;
// =========================================================================== // ===========================================================================
// 1) CRUD générique (categories / manufacturers / suppliers) // 1) CRUD générique (categories / manufacturers / suppliers)