mirror of
https://github.com/getrebuild/rebuild.git
synced 2025-02-26 23:33:12 +08:00
Update ApiGateway.java
This commit is contained in:
parent
1cfc7d3505
commit
f960d671c6
1 changed files with 4 additions and 3 deletions
|
@ -25,7 +25,6 @@ import cn.devezhao.commons.EncryptUtils;
|
||||||
import cn.devezhao.commons.ObjectUtils;
|
import cn.devezhao.commons.ObjectUtils;
|
||||||
import cn.devezhao.commons.web.ServletUtils;
|
import cn.devezhao.commons.web.ServletUtils;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.rebuild.api.sdk.OpenApiSDK;
|
|
||||||
import com.rebuild.server.configuration.ConfigEntry;
|
import com.rebuild.server.configuration.ConfigEntry;
|
||||||
import com.rebuild.server.configuration.RebuildApiManager;
|
import com.rebuild.server.configuration.RebuildApiManager;
|
||||||
import com.rebuild.server.service.DataSpecificationException;
|
import com.rebuild.server.service.DataSpecificationException;
|
||||||
|
@ -48,9 +47,9 @@ import java.util.TreeMap;
|
||||||
* @since 05/19/2018
|
* @since 05/19/2018
|
||||||
*/
|
*/
|
||||||
@Controller
|
@Controller
|
||||||
public class ApiGeteway extends Controll {
|
public class ApiGateway extends Controll {
|
||||||
|
|
||||||
private static final Log LOG = LogFactory.getLog(ApiGeteway.class);
|
private static final Log LOG = LogFactory.getLog(ApiGateway.class);
|
||||||
|
|
||||||
@RequestMapping("/gw/api/{apiName.*}")
|
@RequestMapping("/gw/api/{apiName.*}")
|
||||||
public void api(@PathVariable String apiName,
|
public void api(@PathVariable String apiName,
|
||||||
|
@ -100,6 +99,8 @@ public class ApiGeteway extends Controll {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 验证请求并构建请求上下文
|
||||||
|
*
|
||||||
* @param request
|
* @param request
|
||||||
* @return
|
* @return
|
||||||
* @throws IOException
|
* @throws IOException
|
Loading…
Reference in a new issue