Lines Matching refs:webpath
23 inline std::string getStaticEtag(const std::filesystem::path& webpath) in getStaticEtag() argument
30 bmcweb::split(split, webpath.filename().string(), '.'); in getStaticEtag()
31 BMCWEB_LOG_DEBUG("Checking {} split.size() {}", webpath.filename().string(), in getStaticEtag()
160 std::filesystem::path webpath = relativePath; in addFile() local
164 webpath = webpath.replace_extension(""); in addFile()
166 extension = webpath.extension().string(); in addFile()
171 webpath = webpath.replace_extension(""); in addFile()
173 extension = webpath.extension().string(); in addFile()
177 file.etag = getStaticEtag(webpath); in addFile()
179 if (webpath.filename().string().starts_with("index.")) in addFile()
181 webpath = webpath.parent_path(); in addFile()
182 if (webpath.string().empty() || webpath.string().back() != '/') in addFile()
185 webroutes::routes.insert(webpath); in addFile()
186 webpath += "/"; in addFile()
192 inserted = webroutes::routes.insert(webpath); in addFile()
198 BMCWEB_LOG_DEBUG("Got duplicated path {}", webpath.string()); in addFile()
203 if (webpath == "/") in addFile()
208 app.routeDynamic(webpath)( in addFile()