fix: use snake_case (sftpgo_api_key) instead of camelCase (sftpgoApiKey) to match Homer conventions

pull/947/head
3thibaut1304 2025-06-21 21:36:47 +02:00
parent 6500ecb4ec
commit df9f4cb3cb
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 });