fix: expose ERP controllers under admin API prefix
This commit is contained in:
@@ -20,7 +20,9 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@ErpApi
|
||||
@TenantIgnore
|
||||
@RestController
|
||||
@RequestMapping("/lms")
|
||||
// ERP Controller 不在 controller.admin 包下,不会被框架自动追加 /admin-api 前缀,
|
||||
// 因此这里显式声明完整的外部访问前缀。
|
||||
@RequestMapping("/admin-api/lms")
|
||||
public class ErpInboundController {
|
||||
@Resource private ErpAccessService erpAccessService;
|
||||
@Resource private ErpInboundService erpInboundService;
|
||||
|
||||
@@ -16,7 +16,8 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@ErpApi
|
||||
@TenantIgnore
|
||||
@RestController
|
||||
@RequestMapping("/wms/erp")
|
||||
// ERP Controller 不在 controller.admin 包下,不会被框架自动追加 /admin-api 前缀。
|
||||
@RequestMapping("/admin-api/wms/erp")
|
||||
public class ErpInboundController {
|
||||
@Resource private ErpAccessService erpAccessService;
|
||||
@Resource private ErpInboundService erpInboundService;
|
||||
|
||||
Reference in New Issue
Block a user