post-to-server README
- 用来实现在文件变更时,调用接口,将当前编辑的文件和文件路径传送到服务器。
- This plug-in is used to call the interface when the file is changed, and transmit the currently edited file and file path to the server.
usage
- 在本地添加配置文件 .post-to-server.json
- 配置介绍:
enable : 启用/关闭 本扩展。enable/disable this extension
url : 请求接口地址。request interface address
headers : 请求头设置,配置参考 axios。Request header settings, configuration reference axios axios headers 配置
ignore : <[string]> 忽略文件。ignore files
tipsOnSuccess : 保存成功后是否提示。Whether to prompt after saving successfully
{
"open": true,
"url": "https://abc.com",
"headers": {
"content-type": "application/json",
"x-fpp-origin": "demo123",
"authorization": "123"
},
"ignore": [
".gitignore", ".post-to-server.json"
],
"tipsOnSuccess": true
}
Enjoy!
| |