Use new naming for token

This commit is contained in:
2026-01-06 14:46:17 +01:00
parent d6f19b51cc
commit 8ae35c974c
2 changed files with 7 additions and 7 deletions

View File

@@ -128,9 +128,9 @@ Notes:
### Auth
Requests must include the token using the `X-Filetools-Token` header.
Requests must include the token using the `X-Luxtools-Token` header.
- Header: `X-Filetools-Token: <token>`
- Header: `X-Luxtools-Token: <token>`
- For `GET /open`, a `token=...` query parameter is also accepted as a fallback.
### `GET /health`
@@ -160,7 +160,7 @@ Example:
```bash
curl -sS -X POST \
-H 'Content-Type: application/json' \
-H 'X-Filetools-Token: your-shared-secret' \
-H 'X-Luxtools-Token: your-shared-secret' \
--data '{"path":"/tmp"}' \
http://127.0.0.1:8765/open
```
@@ -173,7 +173,7 @@ Example:
```bash
curl -i \
-H 'X-Filetools-Token: your-shared-secret' \
-H 'X-Luxtools-Token: your-shared-secret' \
'http://127.0.0.1:8765/open?path=/tmp'
```