Use new naming for token
This commit is contained in:
@@ -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'
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user