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"
|
||||
logo: assets/tools/sample.png
|
||||
url: http://sftp-go.example.com
|
||||
sftpgoApiKey: 'hYdn26pTteWZNzbAXoiqgR.jG7TKwtoMRAMrJAGgdr3Ha'
|
||||
sftpgo_api_key: "hYdn26pTteWZNzbAXoiqgR.jG7TKwtoMRAMrJAGgdr3Ha"
|
||||
```
|
||||
|
||||
## SpeedtestTracker
|
||||
|
|
|
@ -47,8 +47,8 @@ export default {
|
|||
methods: {
|
||||
fetchStatus: async function () {
|
||||
let headers = {};
|
||||
if (this.item.sftpgoApiKey) {
|
||||
headers["X-SFTPGO-API-KEY"] = `${this.item.sftpgoApiKey}`;
|
||||
if (this.item.sftpgo_api_key) {
|
||||
headers["X-SFTPGO-API-KEY"] = `${this.item.sftpgo_api_key}`;
|
||||
}
|
||||
try {
|
||||
const response = await this.fetch("/api/v2/version", { headers });
|
||||
|
|
Loading…
Reference in New Issue