mirror of https://github.com/halo-dev/halo
![]() #### What type of PR is this? /kind improvement /area core /milestone 2.6.x /kind api-change #### What this PR does / why we need it: 支持通过 URI 远程安装和升级主题 how to test it? 1. 测试主题安装 ```shell curl -u admin:admin -X POST http://localhost:8090/apis/api.console.halo.run/v1alpha1/themes/-/install-from-uri --data '{ "uri": "https://halo.run/apis/api.store.halo.run/v1alpha1/applications/app-eiTyL/releases/app-release-QSyjc/download/app-release-QSyjc-JOSOB" }' ``` 2. 测试主题升级 ```shell curl -u admin:admin -X POST http://localhost:8090/apis/api.console.halo.run/v1alpha1/themes/guqing-higan/upgrade-from-uri --data '{ "uri": "https://halo.run/apis/api.store.halo.run/v1alpha1/applications/app-eiTyL/releases/app-release-QSyjc/download/app-release-QSyjc-JOSOB" }' ``` #### Which issue(s) this PR fixes: Fixes #2291 #### Does this PR introduce a user-facing change? ```release-note 支持通过 URI 远程安装和升级主题 ``` --------- Co-authored-by: Ryan Wang <i@ryanc.cc> |
||
---|---|---|
.. | ||
src | ||
build.gradle |