|
@@ -160,14 +160,12 @@ public class DeployController {
|
|
|
}
|
|
|
|
|
|
@PostMapping("/license/decrypt")
|
|
|
- @Aac(auth = false)
|
|
|
public Object decryptLicense(@RequestParam MultipartFile file, @RequestParam(required = false) String version)
|
|
|
throws Exception {
|
|
|
return AppLicenseUtil.parseLicense(file.getBytes(), version);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/license/encrypt")
|
|
|
- @Aac(auth = false)
|
|
|
public void encryptLicense(HttpServletResponse response, @RequestBody Object body) throws Exception {
|
|
|
response.setContentType("application/octet-stream; charset=utf-8");
|
|
|
response.setHeader("Content-Disposition", "attachment; filename=app.lic");
|