Clean up code and add plans for future releases.
This commit is contained in:
parent
94b88da5c2
commit
0ab408fbb0
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue