added get_one, get_popular datasource methods, added respective routes

This commit is contained in:
2024-09-26 13:11:55 -04:00
parent 9bd2cf373a
commit e3e81f6685
6 changed files with 125 additions and 32 deletions

View File

@ -1057,6 +1057,7 @@ dependencies = [
"serde_json",
"sqlx",
"tokio",
"tower-http",
"tracing",
"tracing-subscriber",
]
@ -1803,6 +1804,22 @@ dependencies = [
"tracing",
]
[[package]]
name = "tower-http"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8437150ab6bbc8c5f0f519e3d5ed4aa883a83dd4cdd3d1b21f9482936046cb97"
dependencies = [
"bitflags",
"bytes",
"http",
"http-body",
"pin-project-lite",
"tower-layer",
"tower-service",
"tracing",
]
[[package]]
name = "tower-layer"
version = "0.3.3"