commit
55ea1c865c
@ -1,24 +0,0 @@ |
||||
package com.gitee.sop.adminserver.controller; |
||||
|
||||
import com.gitee.easyopen.ApiConfig; |
||||
import com.gitee.easyopen.support.ApiController; |
||||
import org.springframework.beans.factory.annotation.Value; |
||||
import org.springframework.stereotype.Controller; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
||||
/** |
||||
* api入口 |
||||
*/ |
||||
@Controller |
||||
@RequestMapping("api") |
||||
public class IndexController extends ApiController { |
||||
|
||||
@Value("${easyopen.show-doc:false}") |
||||
private String showDoc; |
||||
|
||||
@Override |
||||
protected void initApiConfig(ApiConfig apiConfig) { |
||||
apiConfig.setShowDoc(Boolean.valueOf(showDoc)); |
||||
apiConfig.setIgnoreValidate(true); |
||||
} |
||||
} |
Loading…
Reference in new issue