|
1 | 1 | use crate::vfs::{FileType, VfsAction, VfsRequest, VfsResponse}; |
2 | 2 | use crate::{ |
3 | | - get_blob, last_blob, Address, LazyLoadBlob as KiBlob, Message, Request as KiRequest, |
| 3 | + get_blob, last_blob, LazyLoadBlob as KiBlob, Message, Request as KiRequest, |
4 | 4 | Response as KiResponse, |
5 | 5 | }; |
6 | 6 | pub use http::StatusCode; |
@@ -809,11 +809,11 @@ impl HttpServer { |
809 | 809 | /// An error will be returned if the file does not exist. |
810 | 810 | pub fn serve_file( |
811 | 811 | &mut self, |
812 | | - our: &Address, |
813 | 812 | file_path: &str, |
814 | 813 | paths: Vec<&str>, |
815 | 814 | config: HttpBindingConfig, |
816 | 815 | ) -> Result<(), HttpServerError> { |
| 816 | + let our = crate::our(); |
817 | 817 | let _res = KiRequest::to(("our", "vfs", "distro", "sys")) |
818 | 818 | .body( |
819 | 819 | serde_json::to_vec(&VfsRequest { |
@@ -887,11 +887,11 @@ impl HttpServer { |
887 | 887 | /// An error will be returned if the file does not exist. |
888 | 888 | pub fn serve_ui( |
889 | 889 | &mut self, |
890 | | - our: &Address, |
891 | 890 | directory: &str, |
892 | 891 | roots: Vec<&str>, |
893 | 892 | config: HttpBindingConfig, |
894 | 893 | ) -> Result<(), HttpServerError> { |
| 894 | + let our = crate::our(); |
895 | 895 | let initial_path = format!("{}/pkg/{}", our.package_id(), directory); |
896 | 896 |
|
897 | 897 | let mut queue = std::collections::VecDeque::new(); |
|
0 commit comments