Refactor port again
Some checks failed
CI / Test (1.22) (push) Failing after -24m17s
CI / Test (1.23) (push) Failing after -24m17s
CI / Build (push) Successful in -26m37s
CI / Lint (push) Successful in -26m23s

This commit is contained in:
Hein
2026-02-04 14:22:12 +02:00
parent 52241190b5
commit 592ed24204
16 changed files with 76 additions and 76 deletions

View File

@@ -574,40 +574,40 @@ Events are automatically cached when:
**List cached events:**
```bash
curl -u username:password http://localhost:8025/api/cache
curl -u username:password http://localhost:8825/api/cache
```
**Get cache statistics:**
```bash
curl -u username:password http://localhost:8025/api/cache/stats
curl -u username:password http://localhost:8825/api/cache/stats
```
**Replay all cached events:**
```bash
curl -X POST -u username:password http://localhost:8025/api/cache/replay
curl -X POST -u username:password http://localhost:8825/api/cache/replay
```
**Replay specific event:**
```bash
curl -X POST -u username:password \
"http://localhost:8025/api/cache/event/replay?id=EVENT_ID"
"http://localhost:8825/api/cache/event/replay?id=EVENT_ID"
```
**Delete cached event:**
```bash
curl -X DELETE -u username:password \
"http://localhost:8025/api/cache/event/delete?id=EVENT_ID"
"http://localhost:8825/api/cache/event/delete?id=EVENT_ID"
```
**Clear all cache:**
```bash
curl -X DELETE -u username:password \
"http://localhost:8025/api/cache/clear?confirm=true"
"http://localhost:8825/api/cache/clear?confirm=true"
```
### Cache Workflow Example
@@ -662,7 +662,7 @@ curl -X DELETE -u username:password \
1. `message_cache.enabled` is `true` in config
2. Hooks are actually inactive or not matching events
3. Check cache stats: `curl -u user:pass http://localhost:8025/api/cache/stats`
3. Check cache stats: `curl -u user:pass http://localhost:8825/api/cache/stats`
### No Hooks Configured Error
@@ -715,7 +715,7 @@ Enable debug logging to trace the issue:
"type": "image",
"mime_type": "image/jpeg",
"filename": "wamid.xxx_a1b2c3d4.jpg",
"url": "http://localhost:8025/api/media/business/wamid.xxx_a1b2c3d4.jpg",
"url": "http://localhost:8825/api/media/business/wamid.xxx_a1b2c3d4.jpg",
"base64": "..." // Only if media.mode is "base64" or "both"
}
}
@@ -776,7 +776,7 @@ Here's a complete `config.json` with all Business API features:
{
"server": {
"host": "0.0.0.0",
"port": 8025,
"port": 8825,
"default_country_code": "1",
"username": "admin",
"password": "secure_password",