3 Commits

Author SHA1 Message Date
aaf43f21bd BLOG-78 refactor: simplify get_image_by_id implementation in ImageRepositoryImpl
All checks were successful
PR Title Check / pr-title-check (pull_request) Successful in 13s
Frontend CI / build (push) Successful in 1m8s
2025-07-27 12:52:50 +08:00
c639a85ff3 BLOG-78 feat: add MIME type validation for image uploads
All checks were successful
Frontend CI / build (push) Successful in 1m8s
2025-07-27 12:07:04 +08:00
d58a7d1a37 BLOG-78 feat: implement image upload and retrieval feature
All checks were successful
Frontend CI / build (push) Successful in 1m9s
This commit introduces the capability to upload and serve images.

A new `image` feature module has been added to the backend, following the existing clean architecture pattern.

- Implements `POST /image/upload` for uploading image files.
- Implements `GET /image/{id}` for retrieving an image by its ID.
- Adds a new `image` table to the database to store image metadata.
- Image data is stored in the file system. The path can be configured via the `STORAGE_PATH` environment variable.
2025-07-27 11:51:41 +08:00