Add logging of JSON requests, CI and Dockerization #2

Merged
dorian merged 16 commits from axum-migration into main 2024-02-23 14:33:23 -05:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit 0ab408fbb0 - Show all commits

View File

@ -30,4 +30,6 @@ sudo dpkg -i "mirror-server-${VERSION}_amd64.deb"
* [x] Add mirroring of JSON request.
* [x] Add logging to server.
* [x] ~~Add convenience path to access logging for a certain date / records.~~
* [ ] Dockerize mirror-server for easier distribution.
* [ ] Create Docker image for mirror-server for easier distribution.
* [ ] Add publishing of DEB and Docker image to DroneCI.
* [ ] Add OpenAPI/Swagger UI

View File

@ -35,12 +35,12 @@ struct EchoResponse {
async fn echo_request(
method: Method,
original_uri: OriginalUri,
host: Host,
Host(host): Host,
header_map: HeaderMap,
body: Option<Json<Value>>,
) -> Json<EchoResponse> {
let method = method.to_string();
let host = host.0;
let host = host;
let path = original_uri.path().to_string();
let headers = header_map
.iter()