3 Commits

Author SHA1 Message Date
fa7090a88b feat(api): Add endpoints for webpanel decoy management using background tasks
- Add POST `/api/v1/config/hysteria/webpanel/decoy/setup` endpoint to configure the decoy site.
- Add POST `/api/v1/config/hysteria/webpanel/decoy/stop` endpoint to remove the decoy site configuration.
- Implement `BackgroundTasks` for both endpoints to prevent Caddy service restarts from interrupting the API response.
- Add `SetupDecoyRequest` Pydantic schema for the setup endpoint payload.
2025-04-25 21:58:04 +03:30
4e639993ce Add ROOT_PATH to the .env config loader 2025-02-04 16:30:49 +00:00
8dda44664e Implement pydantic .env loader 2025-02-03 19:03:00 +00:00