dev
This commit is contained in:
parent
b03d146bb6
commit
cddd144452
|
|
@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/auth")
|
||||
@RequestMapping("/common/auth")
|
||||
public class AuthController extends BaseController {
|
||||
@Autowired
|
||||
private Config config;
|
||||
|
|
@ -25,8 +25,16 @@ public class AuthController extends BaseController {
|
|||
}
|
||||
@RequestMapping("get")
|
||||
@NoAuthCheck
|
||||
public Result<JSONObject> get() {
|
||||
public Result<String> get() {
|
||||
String cert=config.get("common","cert");
|
||||
return success(JSONObject.parseObject(cert));
|
||||
return success(cert);
|
||||
}
|
||||
|
||||
@RequestMapping("check")
|
||||
@NoAuthCheck
|
||||
public Result<JSONObject> check(){
|
||||
String cert=config.get("common","cert");
|
||||
String data= RsaUtil.decryp(cert);
|
||||
return success(JSONObject.parseObject(data));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue