mirror of https://github.com/bastienwirtz/homer
fix: use snake_case (sftpgo_api_key) instead of camelCase (sftpgoApiKey) to match Homer conventions
parent
6500ecb4ec
commit
df9f4cb3cb
|
@ -658,7 +658,7 @@ The indicator shows SFTPGo is online, offline. Example configuration:
|
||||||
type: "SFTPGo"
|
type: "SFTPGo"
|
||||||
logo: assets/tools/sample.png
|
logo: assets/tools/sample.png
|
||||||
url: http://sftp-go.example.com
|
url: http://sftp-go.example.com
|
||||||
sftpgoApiKey: 'hYdn26pTteWZNzbAXoiqgR.jG7TKwtoMRAMrJAGgdr3Ha'
|
sftpgo_api_key: "hYdn26pTteWZNzbAXoiqgR.jG7TKwtoMRAMrJAGgdr3Ha"
|
||||||
```
|
```
|
||||||
|
|
||||||
## SpeedtestTracker
|
## SpeedtestTracker
|
||||||
|
|
|
@ -47,8 +47,8 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
fetchStatus: async function () {
|
fetchStatus: async function () {
|
||||||
let headers = {};
|
let headers = {};
|
||||||
if (this.item.sftpgoApiKey) {
|
if (this.item.sftpgo_api_key) {
|
||||||
headers["X-SFTPGO-API-KEY"] = `${this.item.sftpgoApiKey}`;
|
headers["X-SFTPGO-API-KEY"] = `${this.item.sftpgo_api_key}`;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const response = await this.fetch("/api/v2/version", { headers });
|
const response = await this.fetch("/api/v2/version", { headers });
|
||||||
|
|
Loading…
Reference in New Issue