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.
31 lines
656 B
TOML
31 lines
656 B
TOML
[workspace]
|
|
members = ["server", "feature/image", "feature/post"]
|
|
resolver = "2"
|
|
|
|
[workspace.package]
|
|
version = "0.2.0"
|
|
edition = "2024"
|
|
|
|
[workspace.dependencies]
|
|
actix-multipart = "0.7.2"
|
|
actix-web = "4.10.2"
|
|
async-trait = "0.1.88"
|
|
chrono = "0.4.41"
|
|
dotenv = "0.15.0"
|
|
env_logger = "0.11.8"
|
|
futures = "0.3.31"
|
|
log = "0.4.27"
|
|
percent-encoding = "2.3.1"
|
|
serde = { version = "1.0.219", features = ["derive"] }
|
|
sqlx = { version = "0.8.5", features = [
|
|
"chrono",
|
|
"macros",
|
|
"postgres",
|
|
"runtime-tokio-rustls",
|
|
] }
|
|
tokio = { version = "1.45.0", features = ["full"] }
|
|
|
|
server.path = "server"
|
|
image.path = "feature/image"
|
|
post.path = "feature/post"
|