Commit Graph
6 Commits
Author SHA1 Message Date
NanamiAdmin ef27e7e0a9 refactor(watchdog): remove tcp socket connection and add local unix sock connection 2026-05-10 14:38:52 +08:00
NanamiAdmin a2869c1e0e fix(proxy): add "oldName" && "newName" paras to fix unable to modify proxy name 2026-05-05 12:52:04 +08:00
NanamiAdmin 1432651a14 fix(watchdog): fix watchdog unable to send webhook and simplify the parsing of json config
- Change webhook config headers and body from map to string format
- Move command parsing logic to separate function in command.go
- Add debug logging for webhook operations
- Improve exception handling with proper JSON parsing
- Simplify config loading logic with default values
2026-04-28 20:48:54 +08:00
NanamiAdmin ac51641e93 feat(settings): add settings management API endpoints
- Add GET /settings/get and POST /settings/set endpoints for managing system settings
- Implement config file persistence for settings changes
- Update config schema to include notification and webhook settings
- Add API documentation for new endpoints
- Move config path variables to global package for consistency
2026-04-23 12:43:11 +08:00
NanamiAdmin 489c37e095 refactor(global): move config to global package and consolidate handlers
- Move Config struct and related functions to global package
- Consolidate handler utilities into utils package
- Remove deprecated handlers and instance packages
- Add new handlers package with settings and proxy functionality
- Update config.json to include watchdog enabled flag
2026-04-22 19:52:33 +08:00
NanamiAdmin ddf91299e7 refactor: reorganize codebase into modular packages
feat(global): add global package for shared variables and types
refactor(handlers): move handlers to dedicated package and update imports
refactor(session): extract session management to separate package
refactor(config): move config handling to dedicated package
refactor(router): update route handlers to use new package structure
refactor(main): simplify main.go by moving logic to packages
2026-04-22 12:57:04 +08:00