diff --git a/WebStarter/Controllers/ChargeController.cs b/WebStarter/Controllers/ChargeController.cs
index 58f58b8..6092a49 100644
--- a/WebStarter/Controllers/ChargeController.cs
+++ b/WebStarter/Controllers/ChargeController.cs
@@ -15,7 +15,7 @@ namespace WebStarter.Controllers;
///
[Produces("application/json")]
[ApiController]
-[Route("/api/[controller]")]
+[Route("api/[controller]")]
public class ChargeController : ControllerBase
{
private ChargerService _chargerService;
@@ -33,7 +33,7 @@ public class ChargeController : ControllerBase
///
/// 仓位信息列表
[HttpGet]
- [Route("/api/ChrgMonitor/GetChargMonitorChargBinData")]
+ [Route("GetChargMonitorChargBinData")]
public Result> GetChargMonitorChargBinData()
{
List binInfos = _binInfoRepository.Query();
@@ -61,7 +61,7 @@ public class ChargeController : ControllerBase
/// 需要禁用仓id
/// 仓位信息列表
[HttpGet]
- [Route("/api/TBsChargingBinInfo/ChargingBinDisable{data}")]
+ [Route("ChargingBinDisable/{data}")]
public Result ChargingBinDisable(int data)
{
return Result.Success(_binInfoRepository.UpdateStatus(data));
@@ -72,7 +72,7 @@ public class ChargeController : ControllerBase
///
/// 仓位实时功率列表
[HttpPost]
- [Route("/api/ChrgMonitor/GetBinPowers")]
+ [Route("GetBinPowers")]
public Result GetBinPowers()
{
float[] results = ClientMgr.Dictionary.Values
@@ -87,7 +87,7 @@ public class ChargeController : ControllerBase
/// 仓号
///
[HttpGet]
- [Route("/api/ChrgMonitor/StartChargeByBinNo/{binNo}")]
+ [Route("StartChargeByBinNo/{binNo}")]
public Result StartChargeByBinNo(string binNo)
{
return _chargerService.StartChargeByBinNo(binNo);
@@ -99,7 +99,7 @@ public class ChargeController : ControllerBase
/// 仓号
///
[HttpGet]
- [Route("/api/ChrgMonitor/StopChargeByBinNo/{binNo}")]
+ [Route("StopChargeByBinNo/{binNo}")]
public Result StopChargeByBinNo(string binNo)
{
return _chargerService.StartChargeByBinNo(binNo);