Commit Graph

3 Commits

Author SHA1 Message Date
akastijn 6bb50a57b6 Add file saving support to NotificationServer
- Implement file saving to disk in `NotificationServer` with optional UUID-based organization.
- Use `Config` to configure `DOWNLOAD_DIR` and `PORT` for better flexibility.
- Update HTTP responses for improved clarity on file download and save operations.
2025-06-29 03:14:42 +02:00
akastijn 48a01e0a98 Add UUID-based file download support to NotificationServer
- Introduce `/notify/{uuid}/{file}.json` endpoint in `NotificationServer`.
- Validate UUID format and handle bad requests with appropriate error responses.
- Extend `FileDownloadService` to support downloads using UUIDs.
- Refactor common file download logic for reuse across endpoints.
2025-06-29 02:53:52 +02:00
akastijn d4359bf480 Add notification server and file download service implementation
- Introduce `NotificationServer` for handling HTTP notifications.
- Register `ProxyShutdownEvent` to stop the notification server on shutdown.
- Add `FileDownloadService` for asynchronous file downloads using the configured endpoint.
- Update `Config` to include `download-endpoint`.
- Add Javalin and SLF4J dependencies for the HTTP server.
2025-06-23 23:06:47 +02:00